Avoid attempting to test pkg server on Julia <1.7

This commit is contained in:
Curtis Vogt
2024-01-10 15:07:02 -06:00
parent 33033861f0
commit ad723e2fe5

View File

@@ -33,10 +33,15 @@ jobs:
pkg-server: pkg-server:
- "" - ""
- "pkg.julialang.org" - "pkg.julialang.org"
# 32-bit Julia binaries are not available on macOS
exclude: exclude:
# 32-bit Julia binaries are not available on macOS
- os: macOS-latest - os: macOS-latest
arch: x86 arch: x86
# Only Julia 1.7+ can use the package server
- version: "1.0"
pkg-server: "pkg.julialang.org"
- version: "1.6"
pkg-server: "pkg.julialang.org"
steps: steps:
- name: Checkout Example.jl - name: Checkout Example.jl
@@ -73,9 +78,7 @@ jobs:
if: ${{ matrix.pkg-server == 'pkg.julialang.org' }} if: ${{ matrix.pkg-server == 'pkg.julialang.org' }}
shell: bash shell: bash
run: | run: |
if julia -e 'VERSION >= v"1.7-" || exit(1)'; then ! test -d $HOME/.julia/registries/General
! test -d $HOME/.julia/registries/General
fi
- uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-runtest@v1