-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.56 KB
/
linux.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
name: Linux
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-22.04
env:
CC: gcc-13
CXX: g++-13
steps:
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with: { version: latest, cache: true }
- name: Install GLFW Dependencies
run: |
sudo apt update
sudo apt install libwayland-dev libxkbcommon-dev xorg-dev
- name: Checkout GLFW
uses: actions/checkout@v3
with: { path: glfw, repository: glfw/glfw, ref: 3.4 }
- name: Configure and Build GLFW
working-directory: glfw
run: |
cmake -B build -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_SHARED_LIBS=OFF -DGLFW_BUILD_DOCS=OFF -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=build
cmake --build build --target install
- name: Checkout SQEE
uses: actions/checkout@v3
with: { path: sqee, repository: jagoly/sqee, submodules: recursive }
- name: Configure and Build SQEE
working-directory: sqee
run: |
cmake -B build -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_PREFIX_PATH=../glfw/build -DSQEE_STATIC_LIB=ON
cmake --build build --target sqee
- name: Checkout SuperTuxSmash
uses: actions/checkout@v3
with: { path: sts }
- name: Configure and Build SuperTuxSmash
working-directory: sts
run: |
cmake -B build -DCMAKE_BUILD_TYPE=DEBUG -DSQEE_BUILD_ROOT=../sqee/build
cmake --build build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with: { name: sts-linux-debug, path: sts/build/out }