Skip to content

Commit 7c5eb1d

Browse files
committed
Refactor build pipelines
1 parent 5a8c83d commit 7c5eb1d

File tree

4 files changed

+71
-69
lines changed

4 files changed

+71
-69
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Tempest Build Configuration"
2+
description: "Reusable steps for build configuration"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Install Premake
7+
uses: Jarod42/install-premake5@v4
8+
with:
9+
ref: master
10+
- name: Generate Project Files
11+
run: premake5 ${{ inputs.generator }}
12+
- name: Fetch Dependencies
13+
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

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
submodules: recursive
20+
- name: Set Up Environment
21+
uses: ./.github/actions/build-setup
22+
with:
23+
generator: gmake
24+
- name: Configure Ubuntu Libraries
25+
run: sudo apt-get install -y libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev mesa-common-dev
26+
- name: Install Clang 19
27+
uses: egor-tensin/setup-clang@v1
28+
with:
29+
version: 19
30+
platform: x64
31+
- name: Build
32+
run: make config=${{ matrix.config }}_x64 -j$(nproc)
33+
34+
cpp-windows-build:
35+
name: Windows Build
36+
runs-on: ${{ matrix.os }}
37+
38+
strategy:
39+
matrix:
40+
os: [ windows-2022 ]
41+
config: [ debug, release ]
42+
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v2
46+
with:
47+
submodules: recursive
48+
- name: Set Up Environment
49+
uses: ./.github/actions/build-setup
50+
with:
51+
generator: vs2022
52+
- name: Add msbuild to PATH
53+
uses: microsoft/setup-msbuild@v2
54+
- name: Build
55+
run: |
56+
$config = (Get-Culture).TextInfo.ToTitleCase("${{ matrix.config }}")
57+
msbuild Tempest.sln -p:Configuration=$config -p:Platform=x64 -m
58+

0 commit comments

Comments
 (0)