Skip to content

Commit 5a8c83d

Browse files
committed
Windows build
1 parent 2135774 commit 5a8c83d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-windows.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build Windows
2+
3+
on: [push]
4+
5+
jobs:
6+
cpp-build:
7+
name: Build
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
matrix:
12+
os: [ windows-2022 ]
13+
config: [ debug, release ]
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
submodules: recursive
20+
- name: Add msbuild to PATH
21+
uses: microsoft/setup-msbuild@v2
22+
- name: Install Premake
23+
uses: Jarod42/install-premake5@v4
24+
with:
25+
ref: master
26+
- name: Generate Project Files
27+
run: premake5 vs2022
28+
- name: Fetch Dependencies
29+
run: premake5 fetch
30+
- name: Build
31+
run: |
32+
$config = (Get-Culture).TextInfo.ToTitleCase("${{ matrix.config }}")
33+
msbuild /p:Configuration=$config /p:Platform=x64

0 commit comments

Comments
 (0)