vmactions.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. name: Build (VM Actions)
  2. on: [push, pull_request]
  3. concurrency:
  4. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
  5. cancel-in-progress: true
  6. jobs:
  7. freebsd:
  8. runs-on: macos-12
  9. name: FreeBSD
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: Build
  13. uses: vmactions/freebsd-vm@v0
  14. with:
  15. mem: 8192
  16. usesh: true
  17. prepare: |
  18. pkg install -y \
  19. cmake \
  20. ninja \
  21. pkgconf \
  22. libXcursor \
  23. libXext \
  24. libXinerama \
  25. libXi \
  26. libXfixes \
  27. libXrandr \
  28. libXScrnSaver \
  29. libXxf86vm \
  30. wayland \
  31. wayland-protocols \
  32. libxkbcommon \
  33. mesa-libs \
  34. libglvnd \
  35. evdev-proto \
  36. libinotify \
  37. alsa-lib \
  38. jackit \
  39. pipewire \
  40. pulseaudio \
  41. sndio \
  42. dbus \
  43. zh-fcitx \
  44. ibus \
  45. libsamplerate \
  46. libudev-devd
  47. run: |
  48. cmake -S . -B build -GNinja \
  49. -Wdeprecated -Wdev -Werror \
  50. -DCMAKE_BUILD_TYPE=Release \
  51. -DSDL_HIDAPI_LIBUSB=OFF \
  52. -DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
  53. -DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
  54. cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`
  55. cmake --build build/ --config Release --target package
  56. cmake --build build/ --config Release --target clean
  57. rm -rf build/dist/_CPack_Packages
  58. rm -rf build/CMakeFiles
  59. rm -rf build/docs
  60. - uses: actions/upload-artifact@v3
  61. with:
  62. if-no-files-found: error
  63. name: SDL-freebsd
  64. path: build/dist/SDL3*