ci-fedora.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: ci-fedora
  2. on:
  3. workflow_call:
  4. jobs:
  5. build-fedora:
  6. runs-on: ubuntu-latest
  7. container:
  8. image: fedora:latest
  9. timeout-minutes: 5
  10. steps:
  11. - uses: actions/checkout@v4
  12. - name: Install dependencies
  13. run: |
  14. dnf install -y autoconf automake gcc gettext-devel groff libtool make pkgconfig
  15. dnf install -y aspell-devel check-devel gpm-devel libX11-devel "pkgconfig(ext2fs)" "pkgconfig(glib-2.0)" "pkgconfig(gmodule-2.0)" "pkgconfig(libssh2)" "pkgconfig(slang)"
  16. # For tests
  17. dnf install -y glibc-gconv-extra util-linux
  18. - name: Lint documentation
  19. working-directory: maint
  20. run: ./doctest
  21. - name: Bootstrap build system
  22. run: ./autogen.sh
  23. - name: Build default configuration
  24. run: |
  25. useradd --home "$(pwd)" test
  26. chown -R test "$(pwd)"
  27. su - test -c ' \
  28. ./configure \
  29. --prefix="$(pwd)/install-prefix" \
  30. --enable-mclib \
  31. --enable-aspell \
  32. --enable-werror \
  33. && \
  34. \
  35. make -j$(nproc) && \
  36. make check && \
  37. make install \
  38. '
  39. - uses: actions/upload-artifact@v4
  40. if: failure()
  41. with:
  42. name: test-suite-logs-fedora
  43. path: ./**/test-suite.log