More *BSD workflows #1245
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: {} | |
workflow_dispatch: | |
jobs: | |
freebsd: | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Debug, Release] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch the whole tree so git describe works | |
fetch-depth: 0 | |
submodules: true | |
- name: Build in FreeBSD | |
env: | |
BUILD_TYPE: ${{ matrix.build_type }} | |
uses: vmactions/[email protected] | |
with: | |
envs: BUILD_TYPE | |
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 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 | |
make -j3 VERBOSE=1 | |
make install DESTDIR="/tmp/supertux" VERBOSE=1 | |
./test_supertux2 | |
openbsd: | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Debug, Release] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch the whole tree so git describe works | |
fetch-depth: 0 | |
submodules: true | |
- name: Build in OpenBSD | |
env: | |
BUILD_TYPE: ${{ matrix.build_type }} | |
uses: vmactions/[email protected] | |
with: | |
envs: BUILD_TYPE | |
sync: rsync | |
usesh: true | |
copyback: false | |
prepare: | | |
pkg_add git | |
pkg_add cmake | |
pkg_add gtest | |
pkg_add sdl2 | |
pkg_add sdl2-image | |
pkg_add openal | |
pkg_add glew | |
pkg_add curl | |
pkg_add libogg | |
pkg_add libvorbis | |
pkg_add freetype | |
pkg_add glm | |
pkg_add squirrel | |
run: | | |
mkdir build && cd build | |
# IFileStreamBuf test fails on OpenBSD due to a segmentation fault. | |
# This needs to get investigated. In the meantime, don't build any | |
# tests. | |
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWARNINGS=ON -DWERROR=ON \ | |
-DBUILD_TESTS=OFF -DINSTALL_SUBDIR_SHARE=share/supertux2 \ | |
-DCMAKE_INSTALL_MESSAGE=NEVER -DCMAKE_INSTALL_PREFIX=/usr \ | |
-DINSTALL_SUBDIR_BIN=bin # -DGLBINDING_ENABLED=$GLBINDING | |
make -j3 VERBOSE=1 | |
make install DESTDIR="/tmp/supertux" VERBOSE=1 | |
# ./test_supertux2 | |