-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (51 loc) · 1.74 KB
/
build-native.yml
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
61
62
63
64
65
66
67
name: Build Native Apps
on: [push, pull_request]
jobs:
ubuntu-native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install -y libsdl2-dev libx11-xcb-dev
- name: Make build directory
working-directory: ${{ github.workspace }}
run: mkdir cmake-build
- name: Configure
working-directory: ${{ github.workspace }}/cmake-build
run: cmake ..
- name: Build
working-directory: ${{ github.workspace }}/cmake-build
run: make -j `nproc`
windows-native:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: vcpkg install sdl2:x64-windows
- name: Make build directory
working-directory: ${{ github.workspace }}
run: mkdir cmake-build
- name: Configure
working-directory: ${{ github.workspace }}/cmake-build
run: >
cmake -A x64 ${env:GITHUB_WORKSPACE}
-G "Visual Studio 17 2022"
-DCMAKE_TOOLCHAIN_FILE="${env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake"
- name: Build
working-directory: ${{ github.workspace }}/cmake-build
run: cmake --build . --config release
macos-native:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: brew install sdl2
- name: Make build directory
working-directory: ${{ github.workspace }}
run: mkdir cmake-build
- name: Configure
working-directory: ${{ github.workspace }}/cmake-build
run: cmake ..
- name: Build
working-directory: ${{ github.workspace }}/cmake-build
run: make -j 4