Skip to content

Commit 118188b

Browse files
committed
Refactor build pipelines
1 parent 5a8c83d commit 118188b

File tree

4 files changed

+67
-69
lines changed

4 files changed

+67
-69
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Tempest Build Configuration"
2+
description: "Reusable steps for build configuration"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Checkout
7+
uses: actions/checkout@v2
8+
with:
9+
submodules: recursive
10+
- name: Install Premake
11+
uses: Jarod42/install-premake5@v4
12+
with:
13+
ref: master
14+
- name: Generate Project Files
15+
run: premake5 ${{ inputs.generator }}
16+
- name: Fetch Dependencies
17+
run: premake5 fetch

.github/workflows/build-linux.yaml

-36
This file was deleted.

.github/workflows/build-windows.yaml

-33
This file was deleted.

.github/workflows/build.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
cpp-linux-build:
7+
name: Build Linux
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
matrix:
12+
os: [ ubuntu-24.04 ]
13+
config: [ debug, release ]
14+
15+
steps:
16+
- name: Set Up Environment
17+
uses: ./.github/actions/build-setup
18+
with:
19+
generator: gmake
20+
- name: Configure Ubuntu Libraries
21+
run: sudo apt-get install -y libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev mesa-common-dev
22+
- name: Install Clang 19
23+
uses: egor-tensin/setup-clang@v1
24+
with:
25+
version: 19
26+
platform: x64
27+
- name: Build
28+
run: make config=${{ matrix.config }}_x64 -j$(nproc)
29+
30+
cpp-windows-build:
31+
name: Windows Build
32+
runs-on: ${{ matrix.os }}
33+
34+
strategy:
35+
matrix:
36+
os: [ windows-2022 ]
37+
config: [ debug, release ]
38+
39+
steps:
40+
- name: Set Up Environment
41+
uses: ./.github/actions/build-setup
42+
with:
43+
generator: vs2022
44+
- name: Add msbuild to PATH
45+
uses: microsoft/setup-msbuild@v2
46+
- name: Build
47+
run: |
48+
$config = (Get-Culture).TextInfo.ToTitleCase("${{ matrix.config }}")
49+
msbuild Tempest.sln -p:Configuration=$config -p:Platform=x64 -m
50+

0 commit comments

Comments
 (0)