-
Notifications
You must be signed in to change notification settings - Fork 22
59 lines (49 loc) · 2 KB
/
cmake_windows_x86.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
55
56
57
58
59
name: Build x86 Windows
on:
workflow_call:
inputs:
build_type:
required: true
type: string
version:
required: true
type: string
jobs:
windows-32-bit-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/checkout@v3
with:
repository: MadDeCoDeR/BFA-Assets
path: BFA_Assets
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
with:
vs-version: '[17.0, 18.0)'
msbuild-architecture: Win32
- name: Fix MSbuild
shell: powershell
run: Remove-Item "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\Microsoft.VCToolsVersion.v143.default.*"
- name: Cache Windows vcpkg
uses: actions/cache@v3
with:
path: ${{github.workspace}}/build/vcpkg_installed
key: ${{runner.os}}-vcpkg-${{hashfiles('neo/windows-32-bit-status')}}
restore-keys: |
${{ runner.OS }}-vcpkg-
- name: Configure CMake
working-directory: ${{github.workspace}}/neo
shell: powershell
run: cmake -B ${{github.workspace}}/build --preset=windows-x86-2022
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{inputs.build_type}}
- name: Archive production artifacts
uses: ./.github/actions/upload_artifact
with:
artifact_name: windows-${{inputs.version}}-${{inputs.build_type}}-x86
executable_path: ./build/${{inputs.build_type}}/DoomBFA.exe
vcpkg_triplet: x86-windows-static-md