-
Notifications
You must be signed in to change notification settings - Fork 18
51 lines (48 loc) · 1.59 KB
/
CI-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
name: CI Linux
on: [push, pull_request]
jobs:
build:
name: Linux (${{ matrix.configuration }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
configuration: [Debug, Release]
include:
- generator: Ninja
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential g++ cmake ninja-build libsdl2-dev
- name: Build Shared
run: |
mkdir build
cd build
cmake -G ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} ..
cmake --build .
cmake --build . --target demo
cmake --build . --target demo_mem
cmake --build . --target demo_multi
cmake --build . --target gme_player
- name: Build Shared w/o Zlib
run: |
mkdir build-nozlib
cd build-nozlib
cmake -G ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DGME_ZLIB=OFF ..
cmake --build .
cmake --build . --target demo
cmake --build . --target demo_mem
cmake --build . --target demo_multi
cmake --build . --target gme_player
- name: Build Static
run: |
mkdir build-static
cd build-static
cmake -G ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DBUILD_SHARED_LIBS=OFF ..
cmake --build .
cmake --build . --target demo
cmake --build . --target demo_mem
cmake --build . --target demo_multi
cmake --build . --target gme_player