ci-alpine.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: ci-alpine
  2. on:
  3. workflow_call:
  4. jobs:
  5. build-alpine:
  6. runs-on: ubuntu-latest
  7. container:
  8. image: alpine:latest
  9. timeout-minutes: 5
  10. steps:
  11. - uses: actions/checkout@v4
  12. - name: Install dependencies
  13. run: |
  14. apk add autoconf automake build-base libtool pkgconf sudo
  15. apk add aspell-dev check-dev e2fsprogs-dev gettext-dev glib-dev gpm-dev libssh2-dev perl slang-dev
  16. - name: Bootstrap build system
  17. run: ./autogen.sh
  18. - name: Build default configuration
  19. run: |
  20. adduser --home "$(pwd)" --no-create-home --disabled-password test
  21. chown -R test "$(pwd)"
  22. su - test -c ' \
  23. ./configure \
  24. --prefix="$(pwd)/install-prefix" \
  25. --enable-mclib \
  26. --enable-aspell \
  27. --enable-werror \
  28. && \
  29. \
  30. make -j$(nproc) && \
  31. make check && \
  32. make install \
  33. '
  34. - uses: actions/upload-artifact@v4
  35. if: failure()
  36. with:
  37. name: test-suite-logs-alpine
  38. path: ./**/test-suite.log