Skip to content

Commit 457d293

Browse files
committed
Refactor CI build to single file
1 parent 5a8c83d commit 457d293

File tree

2 files changed

+32
-30
lines changed

2 files changed

+32
-30
lines changed

.github/workflows/build-linux.yaml

+32-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Build Linux
1+
name: Compile Tempest
22

33
on: [push]
44

55
jobs:
6-
cpp-build:
7-
name: Build
6+
cpp-linux-build:
7+
name: Build Linux
88
runs-on: ${{ matrix.os }}
99

1010
strategy:
@@ -34,3 +34,32 @@ jobs:
3434
run: premake5 fetch
3535
- name: Build
3636
run: make config=${{ matrix.config }}_x64 -j$(nproc)
37+
38+
cpp-windows-build:
39+
name: Build Windows
40+
runs-on: ${{ matrix.os }}
41+
42+
strategy:
43+
matrix:
44+
os: [ windows-2022 ]
45+
config: [ debug, release ]
46+
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v2
50+
with:
51+
submodules: recursive
52+
- name: Add msbuild to PATH
53+
uses: microsoft/setup-msbuild@v2
54+
- name: Install Premake
55+
uses: Jarod42/install-premake5@v4
56+
with:
57+
ref: master
58+
- name: Generate Project Files
59+
run: premake5 vs2022
60+
- name: Fetch Dependencies
61+
run: premake5 fetch
62+
- name: Build
63+
run: |
64+
$config = (Get-Culture).TextInfo.ToTitleCase("${{ matrix.config }}")
65+
msbuild -p:Configuration=$config -p:Platform=x64 -m

.github/workflows/build-windows.yaml

-27
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,4 @@ name: Build Windows
33
on: [push]
44

55
jobs:
6-
cpp-build:
7-
name: Build
8-
runs-on: ${{ matrix.os }}
96

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)