forked from PotatoOfDoom/CyberFSR2
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (57 loc) · 2.09 KB
/
build.yml
File metadata and controls
73 lines (57 loc) · 2.09 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: MSBuild
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
SOLUTION_FILE_PATH: CyberFSR.sln
BUILD_CONFIGURATION: Release
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1.3
with:
msbuild-architecture: x64
- name: Prepare Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.0
with:
vulkan-query-version: latest
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: Generate FSR 2.0 DX11 Solution
working-directory: ${{ github.workspace }}\external\FidelityFX-FSR2\build
run: .\GenerateSolutionDX11.bat
- name: Generate FSR 2.0 Solution
working-directory: ${{ github.workspace }}\external\FidelityFX-FSR2\build
run: .\GenerateSolutions.bat
- name: Build FSR 2.0 for DirectX 11
working-directory: ${{ github.workspace }}\external\FidelityFX-FSR2\build\DX11
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} FSR2_Sample.sln
- name: Build FSR 2.0 for DirectX 12
working-directory: ${{ github.workspace }}\external\FidelityFX-FSR2\build\DX12
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} FSR2_Sample_DX12.sln
- name: Build FSR 2.0 for Vulkan
working-directory: ${{ github.workspace }}\external\FidelityFX-FSR2\build\VK
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} FSR2_Sample_VK.sln
- name: Build
working-directory: ${{ github.workspace }}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v3
with:
vt_api_key: ${{ secrets.VT_API_KEY }}
files: |
${{ github.workspace }}\x64\Release\*.dll
- uses: actions/upload-artifact@v2
with:
name: CyberFSR2
path: ${{ github.workspace }}\x64\Release
if-no-files-found: error