12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- # SuperTux
- # Copyright (C) 2021 A. Semphris <semphris@protonmail.com>
- #
- # 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, write to the Free Software
- # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- name: other
- on:
- push:
- branches:
- - master
- tags:
- - '*'
- pull_request: {}
- # TODO the glbinding build
- jobs:
- bsd:
- strategy:
- fail-fast: false
- matrix:
- # TODO: Add the OpenBSD, NetBSD and Solaris VMs whenever possible
- vm_os: [freebsd]
- build_type: [Debug, Release]
- runs-on: macos-latest
- steps:
- - uses: actions/checkout@v2
- with:
- # Fetch the whole tree so git describe works
- fetch-depth: 0
- submodules: true
- - name: Build in FreeBSD
- if: ${{ matrix.vm_os == 'freebsd' }}
- env:
- BUILD_TYPE: ${{ matrix.build_type }}
- uses: vmactions/freebsd-vm@v0.1.0
- with:
- envs: 'BUILD_TYPE'
- sync: rsync
- usesh: true
- prepare: |
- pkg install -y pkgconf
- pkg install -y git
- pkg install -y cmake
- pkg install -y sdl2
- pkg install -y sdl2_image
- pkg install -y openal-soft
- pkg install -y glew
- pkg install -y boost-all
- pkg install -y curl
- pkg install -y libogg
- pkg install -y libvorbis
- pkg install -y freetype
- pkg install -y libraqm
- run: |
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DWARNINGS=ON -DWERROR=ON -DBUILD_TESTS=ON -DCMAKE_INSTALL_MESSAGE=NEVER -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_SUBDIR_BIN=bin -DINSTALL_SUBDIR_SHARE=share/supertux2
- make -j3 VERBOSE=1
- make install DESTDIR="/tmp/supertux" VERBOSE=1
- ./test_supertux2
- ios:
- strategy:
- fail-fast: false
- matrix:
- target_os: [ios, tvos, watchos]
- build_type: [Debug, Release]
- runs-on: macos-latest
- steps:
- - uses: actions/checkout@v2
- with:
- # Fetch the whole tree so git describe works
- fetch-depth: 0
- submodules: true
- - name: Build in FreeBSD
|