diff options
author | Joshua Ashton <joshua@froggi.es> | 2022-09-11 01:11:25 +0300 |
---|---|---|
committer | Joshie <joshua@froggi.es> | 2022-10-15 20:11:34 +0300 |
commit | eea77b845f04402638e835362aa79da8b2a57013 (patch) | |
tree | 76db4f8294096140cacb4d04e5f83f48b0fff0a0 /.github | |
parent | 2484dac34ae9aedbc6668f726167c86f7e27526b (diff) |
[meta] Add CI for native builds in Steam Runtime Sniper
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/artifacts.yml | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 5a43b890..9fe6485a 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -3,7 +3,7 @@ name: Artifacts (Package) on: [push, pull_request, workflow_dispatch] jobs: - build-artifacts: + artifacts-mingw-w64: runs-on: ubuntu-20.04 steps: @@ -33,3 +33,34 @@ jobs: name: dxvk-${{ env.VERSION_NAME }} path: build/dxvk-${{ env.VERSION_NAME }} if-no-files-found: error + + artifacts-steamrt-sniper: + runs-on: ubuntu-20.04 + container: registry.gitlab.steamos.cloud/steamrt/sniper/sdk:beta + + steps: + - name: Checkout code + id: checkout-code + uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + + - name: Setup problem matcher + uses: Joshua-Ashton/gcc-problem-matcher@v2 + + - name: Build release + id: build-release + shell: bash + run: | + export VERSION_NAME="${GITHUB_REF##*/}-${GITHUB_SHA##*/}" + ./package-native.sh ${VERSION_NAME} build --no-package + echo "VERSION_NAME=${VERSION_NAME}" >> $GITHUB_ENV + + - name: Upload artifacts + id: upload-artifacts + uses: actions/upload-artifact@v3 + with: + name: dxvk-${{ env.VERSION_NAME }} + path: build/dxvk-native-${{ env.VERSION_NAME }} + if-no-files-found: error |