mirror of
https://github.com/julia-actions/julia-buildpkg.git
synced 2026-02-19 20:36:55 +08:00
Avoid attempting to test pkg server on Julia <1.7
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user