Try fixing the CI caching
This commit is contained in:
parent
ad05ada3e3
commit
3a72279b6b
@ -2,6 +2,10 @@ name: MetagraphOptimization_CI
|
||||
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
# keep the depot directly in the repository for the cache
|
||||
JULIA_DEPOT_PATH: './.julia'
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: arch-latest
|
||||
@ -30,18 +34,14 @@ jobs:
|
||||
patterns: |-
|
||||
**/Project.toml
|
||||
|
||||
- name: Print Runner Info
|
||||
run: |
|
||||
echo "Hash value: ${{ steps.get-hash.outputs.hash }}"
|
||||
|
||||
- name: Restore Cache
|
||||
uses: actions/cache/restore@v3
|
||||
id: cache-restore
|
||||
with:
|
||||
path: |
|
||||
/root/.julia/artifacts
|
||||
/root/.julia/packages
|
||||
/root/.julia/registries
|
||||
.julia/artifacts
|
||||
.julia/packages
|
||||
.julia/registries
|
||||
key: julia-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Check cache hit
|
||||
@ -58,9 +58,9 @@ jobs:
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
path: |
|
||||
/root/.julia/artifacts
|
||||
/root/.julia/packages
|
||||
/root/.julia/registries
|
||||
.julia/artifacts
|
||||
.julia/packages
|
||||
.julia/registries
|
||||
key: julia-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
test:
|
||||
@ -95,12 +95,11 @@ jobs:
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
/root/.julia/artifacts
|
||||
/root/.julia/packages
|
||||
/root/.julia/registries
|
||||
.julia/artifacts
|
||||
.julia/packages
|
||||
.julia/registries
|
||||
key: julia-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
# TODO: Remove once the cache actually works
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
julia --project=./ -e 'import Pkg; Pkg.instantiate(); Pkg.precompile()'
|
||||
@ -140,7 +139,7 @@ jobs:
|
||||
uses: https://github.com/julia-actions/setup-julia@v1.9.2
|
||||
with:
|
||||
version: '1.9.2'
|
||||
|
||||
|
||||
# needed for the file hashing, should be removed when ${{ hashFiles('**/Project.toml') }} is supported in gitea
|
||||
- name: Setup go environment
|
||||
uses: actions/setup-go@v3
|
||||
@ -158,12 +157,11 @@ jobs:
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
/root/.julia/artifacts
|
||||
/root/.julia/packages
|
||||
/root/.julia/registries
|
||||
.julia/artifacts
|
||||
.julia/packages
|
||||
.julia/registries
|
||||
key: julia-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
# TODO: Remove once the cache actually works
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
julia --project=./ -e 'import Pkg; Pkg.instantiate(); Pkg.precompile()'
|
||||
|
Loading…
x
Reference in New Issue
Block a user