vmactions.yml 1.6 KB

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