cpactions.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Build (C/P Actions)
  2. on: [push, pull_request]
  3. jobs:
  4. freebsd:
  5. runs-on: ubuntu-latest
  6. name: FreeBSD
  7. timeout-minutes: 30
  8. steps:
  9. - uses: actions/checkout@v3
  10. - name: Build
  11. uses: cross-platform-actions/action@v0.19.1
  12. with:
  13. operating_system: freebsd
  14. version: '13.2'
  15. shell: bash
  16. run: |
  17. sudo pkg update
  18. sudo pkg install -y \
  19. gmake \
  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. libudev-devd
  45. mkdir build_autotools
  46. export CPPFLAGS="-I/usr/local/include"
  47. export LDFLAGS="-L/usr/local/lib"
  48. (cd build_autotools && ../configure --disable-static)
  49. gmake -C build_autotools -j`sysctl -n hw.ncpu` V=1