-
Notifications
You must be signed in to change notification settings - Fork 64
54 lines (45 loc) · 1.38 KB
/
build.yml
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
54
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-windows:
runs-on: windows-2022
strategy:
matrix:
include:
- build-flavour: debug
output-subdir: _Comp64Debug
- build-flavour: debugoptimized
output-subdir: _Comp64DebugOptimized
- build-flavour: release
output-subdir: _Comp64Release
steps:
- name: Setup variables
uses: actions/github-script@v6
with:
script: core.exportVariable('GITHUB_SHA_SHORT', context.sha.substring(0, 7))
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Meson
run: pip install meson==0.62.1
- name: Build
shell: pwsh
run: |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
. .\build_common.ps1
PerformBuild -BuildFlavour ${{matrix.build-flavour}} -BuildSubDir ${{matrix.output-subdir}} -Backend ninja -EnableTracy false copy_output
- name: Copy readme
run: copy artifacts_readme.txt _output
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: dxvk-remix-${{env.GITHUB_SHA_SHORT}}-${{github.run_number}}-${{matrix.build-flavour}}
path: |
_output\*.dll
_output\*.pdb
_output\*.txt