forked from freeserf/freeserf
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.03 KB
/
linux.yml
File metadata and controls
53 lines (43 loc) · 1.03 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
name: linux
on:
pull_request:
push:
release:
types: published
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
buildtype: [Debug, Release]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev
sudo apt-get install -y libsdl2-mixer-dev
sudo apt-get install -y libsdl2-image-dev
- name: Configure FreeSerf
run: |
cmake -B build -G "Unix Makefiles"
- name: Build FreeSerf
run: |
cd build
make
- name: Run Tests
run: |
cd build
make test
- name: Pack FreeSerf
run: |
cd build
make package
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: FreeSerf-${{ matrix.buildtype }}
path: ./build/FreeSerf-0.1.1-Linux.tar.*