blob: ff3f15d1bb4156df0a51d2395edba6b903289993 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
name: Artifacts (Package)
on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-artifacts:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Prepare version name
run: |
if ${{ github.ref_type == 'tag' }}; then
export VERSION=$(git describe --always --tags --dirty=+)
else
export VERSION="${GITHUB_REF##*/}-${GITHUB_SHA##*/}"
fi
echo "Version name: ${VERSION}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Setup problem matcher
uses: Joshua-Ashton/gcc-problem-matcher@v1
- name: Build release and run unit tests
uses: Joshua-Ashton/arch-mingw-github-action@v7
with:
command: |
./package-release.sh "${{ env.VERSION }}" build --enable-tests
mkdir "${HOME}/tests-prefix"
WINEPREFIX="${HOME}/tests-prefix" WINEDEBUG=-all wine \
"./build/dxvk-nvapi-${{ env.VERSION }}/x64/nvapi64-tests.exe" [@unit-tests] -o tests.log
- name: Present tests results
if: success() || failure()
run: cat tests.log
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dxvk-nvapi-${{ env.VERSION }}
path: build/dxvk-nvapi-${{ env.VERSION }}
if-no-files-found: error
|