other.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # SuperTux
  2. # Copyright (C) 2021 A. Semphris <semphris@protonmail.com>
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License
  6. # as published by the Free Software Foundation; either version 3
  7. # of the License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. name: other
  18. on:
  19. push:
  20. branches:
  21. - master
  22. tags:
  23. - '*'
  24. pull_request: {}
  25. # TODO the glbinding build
  26. jobs:
  27. bsd:
  28. strategy:
  29. fail-fast: false
  30. matrix:
  31. # TODO: Add the OpenBSD, NetBSD and Solaris VMs whenever possible
  32. vm_os: [freebsd]
  33. build_type: [Debug, Release]
  34. runs-on: macos-latest
  35. steps:
  36. - uses: actions/checkout@v2
  37. with:
  38. # Fetch the whole tree so git describe works
  39. fetch-depth: 0
  40. submodules: true
  41. - name: Build in FreeBSD
  42. if: ${{ matrix.vm_os == 'freebsd' }}
  43. env:
  44. BUILD_TYPE: ${{ matrix.build_type }}
  45. uses: vmactions/freebsd-vm@v0.1.0
  46. with:
  47. envs: 'BUILD_TYPE'
  48. sync: rsync
  49. usesh: true
  50. prepare: |
  51. pkg install -y pkgconf
  52. pkg install -y git
  53. pkg install -y cmake
  54. pkg install -y sdl2
  55. pkg install -y sdl2_image
  56. pkg install -y openal-soft
  57. pkg install -y glew
  58. pkg install -y boost-all
  59. pkg install -y curl
  60. pkg install -y libogg
  61. pkg install -y libvorbis
  62. pkg install -y freetype
  63. pkg install -y libraqm
  64. run: |
  65. mkdir build && cd build
  66. 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
  67. make -j3 VERBOSE=1
  68. make install DESTDIR="/tmp/supertux" VERBOSE=1
  69. ./test_supertux2
  70. ios:
  71. strategy:
  72. fail-fast: false
  73. matrix:
  74. target_os: [ios, tvos, watchos]
  75. build_type: [Debug, Release]
  76. runs-on: macos-latest
  77. steps:
  78. - uses: actions/checkout@v2
  79. with:
  80. # Fetch the whole tree so git describe works
  81. fetch-depth: 0
  82. submodules: true
  83. - name: Build in FreeBSD