Xash3D FWGS engine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.1 KiB

name: Build & Deploy Engine
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
include:
- 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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANDROID_SDK_TOOLS_VER: 4333796
UPLOADTOOL_ISPRERELEASE: true
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Checkout xash-extras
uses: actions/checkout@v2
with:
repository: FWGS/xash-extras
path: xash-extras
- name: Install dependencies
run: bash scripts/gha/deps_${{ matrix.targetos }}.sh
- name: Build engine
run: bash scripts/gha/build_${{ matrix.targetos }}.sh
- 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 }}