Skip to content

Commit 8fdf966

Browse files
committed
Try to fix the Julia registry bug.
1 parent fbca3ff commit 8fdf966

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ jobs:
4141
version: ${{ matrix.version }}
4242
arch: ${{ matrix.arch }}
4343
- uses: julia-actions/cache@v3
44+
- name: Ensure General registry
45+
run: |
46+
julia -e '
47+
using Pkg
48+
if isempty(Pkg.Registry.reachable_registries())
49+
try
50+
Pkg.Registry.add()
51+
catch
52+
ENV["JULIA_PKG_SERVER"] = ""
53+
Pkg.Registry.add(Pkg.RegistrySpec(
54+
url="https://github.com/JuliaRegistries/General.git",
55+
))
56+
end
57+
end'
4458
- uses: julia-actions/julia-buildpkg@v1
4559
- uses: julia-actions/julia-runtest@v1
4660
- uses: julia-actions/julia-processcoverage@v1

.github/workflows/Documentation.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ jobs:
2626
with:
2727
version: "1"
2828
- uses: julia-actions/cache@v3
29+
- name: Ensure General registry
30+
run: |
31+
julia -e '
32+
using Pkg
33+
if isempty(Pkg.Registry.reachable_registries())
34+
try
35+
Pkg.Registry.add()
36+
catch
37+
ENV["JULIA_PKG_SERVER"] = ""
38+
Pkg.Registry.add(Pkg.RegistrySpec(
39+
url="https://github.com/JuliaRegistries/General.git",
40+
))
41+
end
42+
end'
2943
- name: Install dependencies
3044
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
3145
- name: Build and deploy

0 commit comments

Comments
 (0)