MilesCranmer commited on
Commit
4ef59ef
1 Parent(s): e3e2116

Make CI install better Julia registry

Browse files
Files changed (1) hide show
  1. .github/workflows/CI.yml +17 -0
.github/workflows/CI.yml CHANGED
@@ -33,6 +33,23 @@ jobs:
33
  uses: julia-actions/[email protected]
34
  with:
35
  version: ${{ matrix.julia-version }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  - name: "Set up Python"
37
  uses: actions/setup-python@v1
38
  with:
 
33
  uses: julia-actions/[email protected]
34
  with:
35
  version: ${{ matrix.julia-version }}
36
+ - name: "Change package server"
37
+ shell: bash
38
+ env:
39
+ JULIA_PKG_SERVER: ""
40
+ run: |
41
+ julia -e 'using Pkg; Pkg.Registry.add("General")'
42
+ - name: "Cache dependencies"
43
+ uses: actions/cache@v1 # Thanks FromFile.jl
44
+ env:
45
+ cache-name: cache-artifacts
46
+ with:
47
+ path: ~/.julia/artifacts
48
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
49
+ restore-keys: |
50
+ ${{ runner.os }}-build-${{ env.cache-name }}-
51
+ ${{ runner.os }}-build-
52
+ ${{ runner.os }}-
53
  - name: "Set up Python"
54
  uses: actions/setup-python@v1
55
  with: