-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.56 KB
/
build.yml
File metadata and controls
60 lines (52 loc) · 1.56 KB
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
60
name: Build GameByte
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
# Windows build
windows-build:
name: Windows Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure and Build
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: GameByte-Windows
path: build/Release/
# macOS build
macos-build:
name: macOS Build (base executable + SDL only)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build SDL3
run: |
cmake -S vendored/SDL -B build-sdl -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/sdl3-install
cmake --build build-sdl --target install
- name: Configure and Build
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DSDL3_DIR=${{ github.workspace }}/sdl3-install/lib/cmake/SDL3 \
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/sdl3-install
cmake --build build --config Release
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: GameByte-macOS
path: |
build/GameByte
build/Release/GameByte
sdl3-install/lib/libSDL3*.dylib