Skip to content

Commit 1bb0a7c

Browse files
committed
try caching precompilation
1 parent 7b3ad3c commit 1bb0a7c

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
timeout-minutes: 90
3434
name: Julia ${{ matrix.version }} - ${{ matrix.test_group }} - ${{ matrix.os }} - ${{ matrix.runtime }} - assertions=${{ matrix.assertions }} - ${{ github.event_name }}
3535
runs-on: ${{ matrix.os }}
36-
container:
37-
image: ${{ contains(matrix.os, 'linux') && 'ghcr.io/enzymead/reactant-docker-images:main' || '' }}
3836
strategy:
3937
fail-fast: false
4038
matrix:
@@ -52,7 +50,9 @@ jobs:
5250
# - macOS-13
5351
- macOS-latest
5452
test_group:
55-
- core
53+
- basic
54+
- control_flow
55+
- reduced_core
5656
- neural_networks
5757
- integration
5858
runtime:
@@ -61,11 +61,6 @@ jobs:
6161
assertions:
6262
- false
6363
include:
64-
- os: linux-x86-ct6e-180-4tpu
65-
version: "1.11"
66-
assertions: false
67-
test_group: core
68-
runtime: "IFRT"
6964
- os: ubuntu-24.04
7065
version: "1.10"
7166
assertions: true
@@ -93,17 +88,25 @@ jobs:
9388
# libReactant: packaged
9489
# version: '1.10'
9590
# test_group: integration
91+
env:
92+
TMPDIR: ${{ github.workspace }}/tmp
93+
JULIA_DEPOT_PATH: "${{ github.workspace }}/.julia_depot:"
9694
steps:
97-
- name: Set TMPDIR
98-
# We have to use `${GITHUB_WORKSPACE}` instead of `github.workspace` because GitHub
99-
# is terrible and the two don't match inside containers:
100-
# https://github.com/actions/runner/issues/2058
101-
run: |
102-
echo "TMPDIR=${GITHUB_WORKSPACE}/tmp" >> ${GITHUB_ENV}
10395
- uses: actions/checkout@v4
10496
- name: Create TMPDIR
10597
run: |
10698
mkdir -p ${{ env.TMPDIR }}
99+
- name: Create Julia Depot Directory
100+
run: |
101+
mkdir -p ${{ github.workspace }}/.julia_depot
102+
- name: Cache Julia Depot
103+
uses: actions/cache@v4
104+
with:
105+
path: ${{ github.workspace }}/.julia_depot
106+
key: julia-depot-${{ runner.os }}-${{ runner.arch }}-${{ matrix.version }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
107+
restore-keys: |
108+
julia-depot-${{ runner.os }}-${{ runner.arch }}-${{ matrix.version }}-
109+
julia-depot-${{ runner.os }}-${{ runner.arch }}-
107110
- uses: julia-actions/setup-julia@v2
108111
if: ${{ ! matrix.assertions }}
109112
with:
@@ -170,4 +173,4 @@ jobs:
170173
- uses: julia-actions/julia-processcoverage@v1
171174
- uses: codecov/codecov-action@v5
172175
with:
173-
files: lcov.info
176+
files: lcov.info

0 commit comments

Comments
 (0)