-
-
Notifications
You must be signed in to change notification settings - Fork 491
83 lines (78 loc) · 2.85 KB
/
bsd.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# SuperTux
# Copyright (C) 2020-2021 Jacob Burroughs <[email protected]>
# 2020-2022 A. Semphris <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
name: BSD
on:
push:
branches:
- master
tags:
- '*'
pull_request: {}
jobs:
bsd:
strategy:
fail-fast: false
matrix:
# TODO: Add the OpenBSD, NetBSD and Solaris VMs whenever possible
vm_os: [freebsd]
build_type: [Debug, Release]
# FreeBSD does not have glbinding
# glbiactions/checkout@v4
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
# Fetch the whole tree so git describe works
fetch-depth: 0
submodules: recursive
- name: Build in FreeBSD
if: ${{ matrix.vm_os == 'freebsd' }}
env:
BUILD_TYPE: ${{ matrix.build_type }}
# GLBINDING: ${{ matrix.glbinding }} # TODO: Re-add if available
uses: vmactions/[email protected]
with:
envs: 'BUILD_TYPE' # TODO: Add GLBINDING here if it comes to FreeBSD
sync: rsync
usesh: true
prepare: |
pkg install -y pkgconf
pkg install -y git
pkg install -y cmake
pkg install -y googletest
pkg install -y sdl2
pkg install -y sdl2_image
pkg install -y openal-soft
pkg install -y glew
# pkg install -y glbinding # TODO: Uncomment whenever possible
pkg install -y curl
pkg install -y libogg
pkg install -y libvorbis
pkg install -y freetype
pkg install -y libraqm
pkg install -y glm
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWARNINGS=ON -DWERROR=ON \
-DBUILD_TESTS=ON -DINSTALL_SUBDIR_SHARE=share/supertux2 \
-DCMAKE_INSTALL_MESSAGE=NEVER -DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_SUBDIR_BIN=bin # -DGLBINDING_ENABLED=$GLBINDING
# TODO: Uncomment whenever possible
make -j3 VERBOSE=1
make install DESTDIR="/tmp/supertux" VERBOSE=1
./test_supertux2
actions/checkout@v4