cpactions.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. name: Build (C/P 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: ubuntu-latest
  9. name: FreeBSD
  10. timeout-minutes: 30
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Build
  14. uses: cross-platform-actions/action@v0.19.1
  15. with:
  16. operating_system: freebsd
  17. version: '13.2'
  18. run: |
  19. sudo pkg update
  20. sudo pkg install -y \
  21. cmake \
  22. ninja \
  23. pkgconf \
  24. libXcursor \
  25. libXext \
  26. libXinerama \
  27. libXi \
  28. libXfixes \
  29. libXrandr \
  30. libXScrnSaver \
  31. libXxf86vm \
  32. wayland \
  33. wayland-protocols \
  34. libxkbcommon \
  35. mesa-libs \
  36. libglvnd \
  37. evdev-proto \
  38. libinotify \
  39. alsa-lib \
  40. jackit \
  41. pipewire \
  42. pulseaudio \
  43. sndio \
  44. dbus \
  45. zh-fcitx \
  46. ibus \
  47. libudev-devd
  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*