Skip to content

Commit

Permalink
Try with matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Nov 21, 2024
1 parent 4367696 commit 91ed812
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/CI-distro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,25 @@ concurrency:
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
generate-matrix:
runs_on: ubuntu-latest
outputs:
gap-packages: ${{ steps.set-matrix.outputs.gap-packages }}
steps:
- uses: actions/checkout@v4
- name: "Set up Julia"
uses: julia-actions/setup-julia@v2
with:
version: '1'
- name: "Cache artifacts"
uses: julia-actions/cache@v2
- name: Get list of GAP packages
id: set-matrix
run: julia --project=. -e 'using Artifacts; println("gap-packages=", readdir(artifact"gap_packages"))'

test:
name: ${{ matrix.gap-package }}
needs: generate-matrix
runs-on: ${{ matrix.os }}
timeout-minutes: 20
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
Expand All @@ -32,15 +49,10 @@ jobs:
- x64
os:
- ubuntu-latest
gap-package:
- 'ferret'
gap-package: ${{fromJSON(needs.generate-matrix.outputs.gap-packages)}}

steps:
- uses: actions/checkout@v4
with:
# For Codecov, we must also fetch the parent of the HEAD commit to
# be able to properly deal with PRs / merges
fetch-depth: 2
- name: "Set up Julia"
uses: julia-actions/setup-julia@v2
with:
Expand Down

0 comments on commit 91ed812

Please sign in to comment.