vmactions.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. timeout-minutes: 30
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Build
  14. uses: vmactions/freebsd-vm@v0
  15. with:
  16. mem: 8192
  17. usesh: true
  18. prepare: |
  19. pkg install -y \
  20. cmake \
  21. ninja \
  22. pkgconf \
  23. libXcursor \
  24. libXext \
  25. libXinerama \
  26. libXi \
  27. libXfixes \
  28. libXrandr \
  29. libXScrnSaver \
  30. libXxf86vm \
  31. wayland \
  32. wayland-protocols \
  33. libxkbcommon \
  34. mesa-libs \
  35. libglvnd \
  36. evdev-proto \
  37. libinotify \
  38. alsa-lib \
  39. jackit \
  40. pipewire \
  41. pulseaudio \
  42. sndio \
  43. dbus \
  44. zh-fcitx \
  45. ibus \
  46. libsamplerate \
  47. libudev-devd
  48. run: |
  49. cmake -S . -B build -GNinja \
  50. -Wdeprecated -Wdev -Werror \
  51. -DCMAKE_BUILD_TYPE=Release \
  52. -DSDL_HIDAPI_LIBUSB=OFF \
  53. -DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
  54. -DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
  55. cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`
  56. cmake --build build/ --config Release --target package
  57. cmake --build build/ --config Release --target clean
  58. rm -rf build/dist/_CPack_Packages
  59. rm -rf build/CMakeFiles
  60. rm -rf build/docs
  61. - uses: actions/upload-artifact@v3
  62. with:
  63. if-no-files-found: error
  64. name: SDL-freebsd
  65. path: build/dist/SDL3*