mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-13 05:05:57 +00:00
Merge pull request #705 from tGecko/ci-git-hash
CI: include build date and git hash in build artifact name
This commit is contained in:
commit
1d8359f828
6 changed files with 46 additions and 7 deletions
8
.github/workflows/linux-qt.yml
vendored
8
.github/workflows/linux-qt.yml
vendored
|
@ -34,8 +34,14 @@ jobs:
|
||||||
- name: Run AppImage packaging script
|
- name: Run AppImage packaging script
|
||||||
run: ./.github/linux-appimage-qt.sh
|
run: ./.github/linux-appimage-qt.sh
|
||||||
|
|
||||||
|
- name: Get date and git hash
|
||||||
|
id: vars
|
||||||
|
run: |
|
||||||
|
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: shadps4-linux-qt
|
name: shadps4-linux-qt-${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.shorthash }}
|
||||||
path: Shadps4-qt.AppImage
|
path: Shadps4-qt.AppImage
|
10
.github/workflows/linux.yml
vendored
10
.github/workflows/linux.yml
vendored
|
@ -31,10 +31,16 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel
|
||||||
|
|
||||||
|
- name: Get date and git hash
|
||||||
|
id: vars
|
||||||
|
run: |
|
||||||
|
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: shadps4-ubuntu64
|
name: shadps4-ubuntu64-${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.shorthash }}
|
||||||
path: |
|
path: |
|
||||||
${{github.workspace}}/build/shadps4
|
${{github.workspace}}/build/shadps4
|
||||||
|
|
||||||
|
@ -44,5 +50,5 @@ jobs:
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: shadps4-sdl-appimage
|
name: shadps4-sdl-appimage-${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.shorthash }}
|
||||||
path: Shadps4-sdl.AppImage
|
path: Shadps4-sdl.AppImage
|
||||||
|
|
9
.github/workflows/macos-qt.yml
vendored
9
.github/workflows/macos-qt.yml
vendored
|
@ -53,8 +53,15 @@ jobs:
|
||||||
macdeployqt upload/shadps4.app
|
macdeployqt upload/shadps4.app
|
||||||
tar cf shadps4-macos-qt.tar.gz -C upload .
|
tar cf shadps4-macos-qt.tar.gz -C upload .
|
||||||
|
|
||||||
|
- name: Get date and git hash
|
||||||
|
id: vars
|
||||||
|
run: |
|
||||||
|
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: shadps4-macos-qt
|
name: shadps4-macos-qt-${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.shorthash }}
|
||||||
path: shadps4-macos-qt.tar.gz
|
path: shadps4-macos-qt.tar.gz
|
||||||
|
|
8
.github/workflows/macos.yml
vendored
8
.github/workflows/macos.yml
vendored
|
@ -45,8 +45,14 @@ jobs:
|
||||||
install_name_tool -add_rpath "@loader_path" upload/shadps4
|
install_name_tool -add_rpath "@loader_path" upload/shadps4
|
||||||
tar cf shadps4-macos-sdl.tar.gz -C upload .
|
tar cf shadps4-macos-sdl.tar.gz -C upload .
|
||||||
|
|
||||||
|
- name: Get date and git hash
|
||||||
|
id: vars
|
||||||
|
run: |
|
||||||
|
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: shadps4-macos-sdl
|
name: shadps4-macos-sdl-${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.shorthash }}
|
||||||
path: shadps4-macos-sdl.tar.gz
|
path: shadps4-macos-sdl.tar.gz
|
||||||
|
|
9
.github/workflows/windows-qt.yml
vendored
9
.github/workflows/windows-qt.yml
vendored
|
@ -41,9 +41,16 @@ jobs:
|
||||||
mkdir upload
|
mkdir upload
|
||||||
move build/Release/shadPS4.exe upload
|
move build/Release/shadPS4.exe upload
|
||||||
windeployqt --dir upload upload/shadPS4.exe
|
windeployqt --dir upload upload/shadPS4.exe
|
||||||
|
|
||||||
|
- name: Get date and git hash
|
||||||
|
id: vars
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
echo "date=$(Get-Date -Format 'yyyy-MM-dd')" >> $env:GITHUB_OUTPUT
|
||||||
|
echo "shorthash=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: shadps4-win64-qt
|
name: shadps4-win64-qt-${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.shorthash }}
|
||||||
path: upload
|
path: upload
|
||||||
|
|
9
.github/workflows/windows.yml
vendored
9
.github/workflows/windows.yml
vendored
|
@ -26,9 +26,16 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel
|
||||||
|
|
||||||
|
- name: Get date and git hash
|
||||||
|
id: vars
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
echo "date=$(Get-Date -Format 'yyyy-MM-dd')" >> $env:GITHUB_OUTPUT
|
||||||
|
echo "shorthash=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: shadps4-win64-sdl
|
name: shadps4-win64-sdl-${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.shorthash }}
|
||||||
path: |
|
path: |
|
||||||
${{github.workspace}}/build/Release/shadPS4.exe
|
${{github.workspace}}/build/Release/shadPS4.exe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue