Skip to content

Commit 9ee3f95

Browse files
committed
try caching precompilation
1 parent 7b3ad3c commit 9ee3f95

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ jobs:
9393
# libReactant: packaged
9494
# version: '1.10'
9595
# test_group: integration
96+
TMPDIR: ${{ github.workspace }}/tmp
97+
JULIA_DEPOT_PATH: "${{ github.workspace }}/.julia_depot:"
9698
steps:
9799
- name: Set TMPDIR
98100
# We have to use `${GITHUB_WORKSPACE}` instead of `github.workspace` because GitHub
@@ -104,6 +106,17 @@ jobs:
104106
- name: Create TMPDIR
105107
run: |
106108
mkdir -p ${{ env.TMPDIR }}
109+
- name: Create Julia Depot Directory
110+
run: |
111+
mkdir -p ${{ github.workspace }}/.julia_depot
112+
- name: Cache Julia Depot
113+
uses: actions/cache@v4
114+
with:
115+
path: ${{ github.workspace }}/.julia_depot
116+
key: julia-depot-${{ runner.os }}-${{ runner.arch }}-${{ matrix.version }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
117+
restore-keys: |
118+
julia-depot-${{ runner.os }}-${{ runner.arch }}-${{ matrix.version }}-
119+
julia-depot-${{ runner.os }}-${{ runner.arch }}-
107120
- uses: julia-actions/setup-julia@v2
108121
if: ${{ ! matrix.assertions }}
109122
with:

0 commit comments

Comments
 (0)