Skip to content

Commit

Permalink
CI: Use Pkg.jl for installing GAP.jl (#5735)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Jun 7, 2024
1 parent be4ec9d commit 8e71664
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/gapjl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
fail-fast: false
matrix:
gapjl-version:
- 'latest-release'
- 'master'
julia-version:
- '1.6'
Expand All @@ -34,24 +35,35 @@ jobs:
- ubuntu-latest
include:
# Add a few macOS jobs (the number we can run in parallel is limited)
- gap-version: 'master'
- gapjl-version: 'latest-release'
julia-version: '1'
os: macOS-latest
- gapjl-version: 'master'
julia-version: '1'
os: macOS-latest

steps:
- name: Checkout GAP.jl
- name: Checkout GAP
uses: actions/checkout@v4
with:
repository: 'oscar-system/GAP.jl'
ref: ${{ matrix.gapjl-version }}
path: 'GAPROOT'
- name: "Set up Julia"
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- name: Checkout GAP
uses: actions/checkout@v4
with:
path: 'GAPROOT'
- name: Install GAP.jl
shell: julia --color=yes {0}
run: |
using Pkg
if "${{ matrix.gapjl-version }}" == "latest-release"
Pkg.add("GAP")
else
Pkg.add(;name="GAP", rev="${{ matrix.gapjl-version }}")
end
path = dirname(dirname(Base.find_package("GAP")))
open(ENV["GITHUB_ENV"], "a") do io
println(io, "GAPJLPATH=$path")
end
- name: "Install dependencies (for macOS)"
if: runner.os == 'macOS'
run: |
Expand All @@ -65,7 +77,7 @@ jobs:
make -j`nproc`
- name: "Override bundled GAP"
run: |
julia --proj=override etc/setup_override_dir.jl /tmp/GAPROOT /tmp/gap_jll_override
julia --proj=override $GAPJLPATH/etc/setup_override_dir.jl /tmp/GAPROOT /tmp/gap_jll_override
- name: "Run tests"
run: |
julia --proj=override etc/run_with_override.jl /tmp/gap_jll_override --depwarn=error -e "using Pkg; Pkg.test(\"GAP\")"
julia --proj=override $GAPJLPATH/etc/run_with_override.jl /tmp/gap_jll_override --depwarn=error -e "using Pkg; Pkg.test(\"GAP\")"

0 comments on commit 8e71664

Please sign in to comment.