Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
glKarin authored Nov 6, 2024
1 parent 52b0dd9 commit eabeda1
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
echo ${{ github.workspace }} ${{ matrix.os }}-${{ matrix.bits }}
if [ "x${{ matrix.bits }}" = "x32" ]; then echo "arch=86" >> "$GITHUB_OUTPUT"; else echo "arch=64" >> "$GITHUB_OUTPUT"; fi
if [ "x${{ matrix.os }}" = "xubuntu-latest" ]; then echo "os=linux" >> "$GITHUB_OUTPUT"; else echo "os=win" >> "$GITHUB_OUTPUT"; fi
if [ "x${{ matrix.os }}" = "xubuntu-latest" ]; then echo "os=linux" >> "$GITHUB_OUTPUT"; echo "archive=tar.gz" >> "$GITHUB_OUTPUT"; else echo "os=win" >> "$GITHUB_OUTPUT"; echo "archive=zip" >> "$GITHUB_OUTPUT"; fi
- name: Get current date time
id: current_datetime
Expand Down Expand Up @@ -112,8 +112,8 @@ jobs:
if: matrix.os == 'windows-latest'
uses: vimtor/[email protected]
with:
files: windows_x${{ steps.strings.outputs.arch }}_release/
dest: idTech4A++-test_windows_x${{ steps.strings.outputs.arch }}_release-${{ steps.current_datetime.outputs.time }}.zip
files: ${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release/
dest: idTech4A++-test_${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}-${{ steps.current_datetime.outputs.time }}.zip
recursive: false

- name: run apt
Expand Down Expand Up @@ -145,13 +145,13 @@ jobs:
#cp Q3E/src/main/jni/doom3/neo/${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}/Quake4 ${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release/
#cp Q3E/src/main/jni/doom3/neo/${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}/Prey ${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release/
dir ${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release
tar zcvf idTech4A++-test_${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release-${{ steps.current_datetime.outputs.time }}.tar.gz ${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release/
tar zcvf idTech4A++-test_${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}-${{ steps.current_datetime.outputs.time }}.tar.gz ${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release/
- uses: actions/upload-artifact@v4
name: Upload Zip artifacts
name: Upload package archive artifacts
with:
name: "${{ matrix.os }}-${{ matrix.bits }}-release"
path: "idTech4A++-test_${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}_release-${{ steps.current_datetime.outputs.time }}.${{matrix.os == 'ubuntu' && 'tar.gz' || 'zip'}}"
path: "idTech4A++-test_${{ steps.strings.outputs.os }}_x${{ steps.strings.outputs.arch }}-${{ steps.current_datetime.outputs.time }}.${{ steps.strings.outputs.archive }}"
retention-days: 1

collect:
Expand All @@ -163,6 +163,10 @@ jobs:
with:
# path: packages
merge-multiple: true

- name: List all packages
run: |
ls --color;
- name: Delete tag and release
uses: dev-drprasad/[email protected]
Expand All @@ -178,7 +182,7 @@ jobs:
repo_token: "${{ secrets.TOKEN }}"
automatic_release_tag: "windows_x64_testing"
prerelease: true
title: "Windows x64 testing (Non-release. Automatic CI builds)"
title: "Windows/Linux x64 testing (Non-release. Automatic CI builds)"
files: |
idTech4A++-test_windows_x64_release-${{ steps.current_datetime.outputs.time }}.zip
idTech4A++-test_windows_x86_release-${{ steps.current_datetime.outputs.time }}.zip
idTech4A++-test_win_x64-${{ steps.current_datetime.outputs.time }}.zip
idTech4A++-test_linux_x64-${{ steps.current_datetime.outputs.time }}.tar.gz

0 comments on commit eabeda1

Please sign in to comment.