Skip to content

Commit 1ed860c

Browse files
authored
Modernise CI-advanced workflow (#54)
1 parent bd6d621 commit 1ed860c

1 file changed

Lines changed: 28 additions & 40 deletions

File tree

.github/workflows/CI-advanced.yml

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,54 +19,42 @@ concurrency:
1919
jobs:
2020
# The CI test job
2121
test:
22-
name: ${{ matrix.gap-branch }}
23-
runs-on: ubuntu-latest
22+
name: ${{ matrix.gap-version }} on ${{ matrix.os }}
23+
runs-on: ${{ matrix.os }}
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
gap-branch:
28-
- master
29-
- stable-4.15
30-
- stable-4.14
31-
- stable-4.13
32-
- stable-4.12
33-
- stable-4.11
34-
- stable-4.10
27+
os: [ ubuntu-latest, macos-latest, windows-latest ]
28+
gap-version:
29+
- 'devel'
30+
- '4.15'
31+
- '4.14'
32+
- '4.13'
33+
- '4.12'
34+
- '4.11'
35+
include:
36+
- os: ubuntu-latest
37+
gap-version: '4.10'
38+
3539

3640
steps:
3741
- uses: actions/checkout@v6
38-
- uses: gap-actions/setup-gap@v2
42+
- uses: gap-actions/setup-cygwin@v2
43+
if: ${{ matrix.os == 'windows-latest' }}
44+
- uses: gap-actions/setup-gap@v3
3945
with:
40-
GAP_PKGS_TO_CLONE: "nq"
41-
GAP_PKGS_TO_BUILD: "io profiling nq" # io & profiling must always be built for coverage tracking
42-
GAPBRANCH: ${{ matrix.gap-branch }}
43-
- name: 'Install additional dependencies'
44-
run: |
45-
sudo apt-get install libmpfr-dev
46-
- uses: gap-actions/build-pkg@v1
47-
- uses: gap-actions/run-pkg-tests@v3
48-
- uses: gap-actions/run-pkg-tests@v3
46+
gap-version: ${{ matrix.gap-version }}
47+
- uses: gap-actions/install-pkg@v1
4948
with:
50-
only-needed: true
51-
- uses: gap-actions/process-coverage@v2
52-
- uses: codecov/codecov-action@v6
49+
packages: nq@devel
50+
- uses: gap-actions/build-pkg@v3
5351
with:
54-
token: ${{ secrets.CODECOV_TOKEN }}
55-
56-
# The documentation job
57-
manual:
58-
name: Build manuals
59-
runs-on: ubuntu-latest
60-
61-
steps:
62-
- uses: actions/checkout@v6
63-
- uses: gap-actions/setup-gap@v2
64-
- uses: gap-actions/build-pkg-docs@v1
52+
extra-pkgs: nq
53+
- uses: gap-actions/run-pkg-tests@v4
54+
- uses: gap-actions/run-pkg-tests@v4
6555
with:
66-
use-latex: 'true'
67-
- name: 'Upload documentation'
68-
uses: actions/upload-artifact@v4
56+
mode: onlyneeded
57+
- uses: gap-actions/process-coverage@v3
58+
- uses: codecov/codecov-action@v6
6959
with:
70-
name: manual
71-
path: ./doc/manual.pdf
72-
if-no-files-found: error
60+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)