ci-freebsd.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: ci-freebsd
  2. on:
  3. workflow_call:
  4. inputs:
  5. CFLAGS:
  6. description: 'Custom CFLAGS'
  7. default: ''
  8. required: false
  9. type: string
  10. jobs:
  11. build-freebsd:
  12. runs-on: ubuntu-latest
  13. timeout-minutes: 15
  14. steps:
  15. - uses: actions/checkout@v4
  16. - name: Build on FreeBSD
  17. uses: vmactions/freebsd-vm@v1
  18. with:
  19. prepare: |
  20. pkg install -y autoconf automake gettext libtool pkgconf
  21. pkg install -y aspell check glib libssh2 libX11
  22. run: |
  23. ./autogen.sh
  24. pw useradd test -d "$(pwd)"
  25. chown -R test $(pwd)
  26. su - test -c ' \
  27. \
  28. export CFLAGS="${{ inputs.CFLAGS }}" && \
  29. \
  30. ./configure \
  31. --prefix="$(pwd)/install-prefix" \
  32. --with-screen=ncurses \
  33. --enable-mclib \
  34. --enable-aspell \
  35. --enable-werror \
  36. && \
  37. \
  38. make && \
  39. make check && \
  40. make install \
  41. '
  42. - uses: actions/upload-artifact@v4
  43. if: failure()
  44. with:
  45. name: test-suite-logs-freebsd
  46. path: ./**/test-suite.log