github: try to upload artifacts

This commit is contained in:
Alibek Omarov 2021-12-14 23:17:04 +03:00
parent dc186c3cba
commit 2604ea39c5
1 changed files with 14 additions and 12 deletions

View File

@ -11,27 +11,34 @@ jobs:
- os: ubuntu-18.04
targetos: linux
targetarch: amd64
artifacts: xash3d-fwgs-amd64.AppImage xashds-linux-amd64
- os: ubuntu-18.04
targetos: linux
targetarch: i386
artifacts: xash3d-fwgs-i386.AppImage xashds-linux-i386
- os: ubuntu-18.04
targetos: android
targetarch: 32
artifacts: xashdroid-32.apk
- os: ubuntu-18.04
targetos: android
targetarch: 64
artifacts: xashdroid-64.apk
- os: ubuntu-18.04
targetos: motomagx
targetarch: armv6
artifacts: xash3d-fwgs-magx.7z
- os: windows-latest
targetos: win32
targetarch: amd64
artifacts: xash3d-fwgs-win32-amd64.7z
- os: windows-latest
targetos: win32
targetarch: i386
artifacts: xash3d-fwgs-win32-i386.7z
env:
SDL_VERSION: 2.0.14
GH_CPU_ARCH: ${{ matrix.targetarch }}
@ -55,15 +62,10 @@ jobs:
- name: Build engine
run: bash scripts/gha/build_${{ matrix.targetos }}.sh
- name: Upload engine (android)
if: matrix.targetos == 'android'
run: bash scripts/continious_upload.sh xashdroid-${{ matrix.targetarch }}.apk
- name: Upload engine (motomagx)
if: matrix.targetos == 'motomagx'
run: bash scripts/continious_upload.sh xash3d-fwgs-magx.7z
- name: Upload engine (linux)
if: matrix.targetos == 'linux'
run: bash scripts/continious_upload.sh xash3d-fwgs-${{ matrix.targetarch }}.AppImage xashds-linux-${{ matrix.targetarch }}
- name: Upload engine (windows)
if: matrix.targetos == 'win32'
run: bash scripts/continious_upload.sh xash3d-fwgs-win32-${{ matrix.targetarch }}.7z
- name: Upload engine (prereleases)
run: bash scripts/continious_upload.sh ${{ matrix.artifacts }}
- name: Upload engine (artifacts)
uses: actions/upload-artifact@v2
with:
name: artifact-${{ matrix.targetos }}-${{ matrix.targetarch }}
path: ${{ matrix.artifacts }}