2021-02-27 13:56:53 +01:00
|
|
|
name: Artifacts (Package)
|
|
|
|
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
2022-09-11 00:11:25 +02:00
|
|
|
artifacts-mingw-w64:
|
2021-02-27 13:56:53 +01:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
id: checkout-code
|
2024-05-25 22:27:01 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-02-27 13:56:53 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-07-20 10:37:35 +02:00
|
|
|
fetch-depth: 0
|
2021-02-27 13:56:53 +01:00
|
|
|
|
|
|
|
- name: Setup problem matcher
|
2024-05-25 22:27:01 +02:00
|
|
|
uses: Joshua-Ashton/gcc-problem-matcher@v3
|
2021-02-27 13:56:53 +01:00
|
|
|
|
|
|
|
- name: Build release
|
|
|
|
id: build-release
|
2022-07-26 19:49:22 +02:00
|
|
|
uses: Joshua-Ashton/arch-mingw-github-action@v8
|
2021-02-27 13:56:53 +01:00
|
|
|
with:
|
|
|
|
command: |
|
|
|
|
export VERSION_NAME="${GITHUB_REF##*/}-${GITHUB_SHA##*/}"
|
|
|
|
./package-release.sh ${VERSION_NAME} build --no-package
|
|
|
|
echo "VERSION_NAME=${VERSION_NAME}" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
id: upload-artifacts
|
2024-05-25 22:27:01 +02:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-02-27 13:56:53 +01:00
|
|
|
with:
|
2024-05-25 22:27:01 +02:00
|
|
|
name: dxvk-win-${{ env.VERSION_NAME }}
|
2021-02-27 13:56:53 +01:00
|
|
|
path: build/dxvk-${{ env.VERSION_NAME }}
|
|
|
|
if-no-files-found: error
|
2022-09-11 00:11:25 +02:00
|
|
|
|
|
|
|
artifacts-steamrt-sniper:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
container: registry.gitlab.steamos.cloud/steamrt/sniper/sdk:beta
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
id: checkout-code
|
2024-05-25 22:27:01 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-09-11 00:11:25 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup problem matcher
|
2024-05-25 22:27:01 +02:00
|
|
|
uses: Joshua-Ashton/gcc-problem-matcher@v3
|
2022-09-11 00:11:25 +02:00
|
|
|
|
|
|
|
- name: Build release
|
|
|
|
id: build-release
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export VERSION_NAME="${GITHUB_REF##*/}-${GITHUB_SHA##*/}"
|
2023-12-12 23:41:54 +01:00
|
|
|
./package-native.sh ${VERSION_NAME} build
|
2022-09-11 00:11:25 +02:00
|
|
|
echo "VERSION_NAME=${VERSION_NAME}" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
id: upload-artifacts
|
2024-05-25 22:27:01 +02:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-09-11 00:11:25 +02:00
|
|
|
with:
|
2024-05-25 22:27:01 +02:00
|
|
|
name: dxvk-native-${{ env.VERSION_NAME }}
|
2023-12-12 23:41:54 +01:00
|
|
|
path: build/dxvk-native-${{ env.VERSION_NAME }}.tar.gz
|
2022-09-11 00:11:25 +02:00
|
|
|
if-no-files-found: error
|
2024-05-25 22:27:01 +02:00
|
|
|
|
|
|
|
merge-artifacts:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
needs: [artifacts-mingw-w64, artifacts-steamrt-sniper]
|
|
|
|
steps:
|
|
|
|
- name: Get version
|
|
|
|
id: get-version
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "VERSION_NAME=${GITHUB_REF##*/}-${GITHUB_SHA##*/}" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Merge Artifacts
|
|
|
|
uses: actions/upload-artifact/merge@v4
|
|
|
|
with:
|
|
|
|
name: dxvk-${{ env.VERSION_NAME }}
|
|
|
|
pattern: dxvk*
|
|
|
|
delete-merged: true
|