From 9753277e6bfd226ca8fc238b82ffb17c0a477206 Mon Sep 17 00:00:00 2001 From: Wilf Wilson Date: Fri, 12 Sep 2025 11:40:23 +0100 Subject: [PATCH] CI: update cygwin setup and make manuals job its own workflow --- .github/workflows/CI.yml | 61 ++++++++++-------------------------- .github/workflows/manual.yml | 27 ++++++++++++++++ 2 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6bf953b..eed8705 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,7 +1,8 @@ name: CI -# Trigger the workflow on push or pull request +# Trigger the workflow on push or pull request or manually on: + workflow_dispatch: push: branches: - master @@ -18,70 +19,42 @@ concurrency: jobs: # The CI test job test: - name: ${{ matrix.gap-branch }} ${{ matrix.ABI }} - runs-on: ubuntu-latest + name: "${{ matrix.os }}: GAP ${{ matrix.gap-branch }} ${{ matrix.ABI }}" + runs-on: ${{ matrix.os }}-latest strategy: fail-fast: false matrix: gap-branch: - master + - stable-4.15 - stable-4.14 - stable-4.13 - stable-4.12 ABI: [''] + os: + - ubuntu include: - gap-branch: master ABI: 32 + os: ubuntu + - gap-branch: master + os: windows steps: - uses: actions/checkout@v5 + - uses: gap-actions/setup-cygwin@v2 + if: ${{ runner.os == 'Windows' }} - uses: gap-actions/setup-gap@v2 with: GAPBRANCH: ${{ matrix.gap-branch }} ABI: ${{ matrix.ABI }} - - uses: gap-actions/build-pkg@v1 - - uses: gap-actions/run-pkg-tests@v3 - - uses: gap-actions/run-pkg-tests@v3 + - uses: gap-actions/build-pkg@v2 + - uses: gap-actions/run-pkg-tests@v4 + - uses: gap-actions/run-pkg-tests@v4 + if: ${{ runner.os != 'Windows' }} with: - only-needed: true + mode: 'onlyneeded' - uses: gap-actions/process-coverage@v2 - uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} - - test-cygwin: - name: "master cygwin64" - if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} - runs-on: windows-2019 - env: - CHERE_INVOKING: 1 - steps: - - uses: actions/checkout@v5 - - uses: gap-actions/setup-cygwin@v1 - - uses: gap-actions/setup-gap@cygwin-v2 - with: - GAP_PKGS_TO_BUILD: 'profiling io' - - uses: gap-actions/build-pkg@cygwin-v1 - - uses: gap-actions/run-pkg-tests@cygwin-v2 - - uses: gap-actions/process-coverage@cygwin-v2 - - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - # The documentation job - manual: - name: Build manuals - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v5 - - uses: gap-actions/setup-gap@v2 - - uses: gap-actions/build-pkg-docs@v1 - with: - use-latex: 'true' - - name: 'Upload documentation' - uses: actions/upload-artifact@v4 - with: - name: manual - path: ./doc/manual.pdf - if-no-files-found: error diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 0000000..8f9816d --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,27 @@ +name: Build manual + +# Trigger the workflow on push or pull request or manually +on: + workflow_dispatch: + push: + branches: + - master + pull_request: + +jobs: + manual: + name: Build manual + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 + - uses: gap-actions/setup-gap@v3 + - uses: gap-actions/build-pkg-docs@v2 + with: + use-latex: 'true' + - name: 'Upload documentation' + uses: actions/upload-artifact@v4 + with: + name: manual + path: ./doc/manual.pdf + if-no-files-found: error