ci-macos.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: ci-macos
  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-macos:
  12. runs-on: macos-latest
  13. timeout-minutes: 5
  14. steps:
  15. - uses: actions/checkout@v4
  16. - name: Install dependencies
  17. run: |
  18. brew install autoconf automake gettext check gnu-indent libtool pkg-config
  19. brew install aspell e2fsprogs glib libssh2 openssl s-lang
  20. # unzip is part of the base system
  21. - name: Bootstrap build system
  22. run: ./autogen.sh
  23. - name: Build default configuration
  24. run: |
  25. export CFLAGS="${{ inputs.CFLAGS }}"
  26. ./configure \
  27. --prefix="$(pwd)/install-prefix" \
  28. --enable-mclib \
  29. --enable-aspell=/opt/homebrew
  30. make -j$(sysctl -n hw.logicalcpu)
  31. make check
  32. make install
  33. - uses: actions/upload-artifact@v4
  34. if: failure()
  35. with:
  36. name: test-suite-logs-macos
  37. path: ./**/test-suite.log