mirror of
https://github.com/julia-actions/julia-buildpkg.git
synced 2026-02-12 09:26:54 +08:00
Add registry clone skip test
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -21,6 +21,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
version:
|
version:
|
||||||
- "1.0"
|
- "1.0"
|
||||||
|
- "1.6" # Long-term support (LTS) release of Julia
|
||||||
- "1" # automatically expands to the latest stable 1.x release of Julia
|
- "1" # automatically expands to the latest stable 1.x release of Julia
|
||||||
- nightly
|
- nightly
|
||||||
os:
|
os:
|
||||||
@@ -61,9 +62,22 @@ jobs:
|
|||||||
- uses: ./.github/actions/julia-buildpkg
|
- uses: ./.github/actions/julia-buildpkg
|
||||||
with:
|
with:
|
||||||
ignore-no-cache: true
|
ignore-no-cache: true
|
||||||
|
localregistry: |
|
||||||
|
https://github.com/JuliaRegistries/General.git
|
||||||
env:
|
env:
|
||||||
JULIA_PKG_SERVER: ${{ matrix.pkg-server }}
|
JULIA_PKG_SERVER: ${{ matrix.pkg-server }}
|
||||||
|
|
||||||
|
# When using the Pkg server the `Pkg.Registry.add("General")` will add the General registry
|
||||||
|
# via Pkg servers. Using `localregistry` to clone the General registry via HTTPS should be
|
||||||
|
# skipped.
|
||||||
|
- name: Test skipping registry cloning of duplicate repos
|
||||||
|
if: ${{ matrix.pkg-server == 'pkg.julialang.org' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if julia -e 'VERSION >= v"1.7-" || exit(1)'; then
|
||||||
|
! test -d $HOME/.julia/registries/General
|
||||||
|
fi
|
||||||
|
|
||||||
- uses: julia-actions/julia-runtest@v1
|
- uses: julia-actions/julia-runtest@v1
|
||||||
|
|
||||||
- uses: julia-actions/julia-processcoverage@v1
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user