33
33
timeout-minutes : 90
34
34
name : Julia ${{ matrix.version }} - ${{ matrix.test_group }} - ${{ matrix.os }} - ${{ matrix.runtime }} - assertions=${{ matrix.assertions }} - ${{ github.event_name }}
35
35
runs-on : ${{ matrix.os }}
36
- container :
37
- image : ${{ contains(matrix.os, 'linux') && 'ghcr.io/enzymead/reactant-docker-images:main' || '' }}
38
36
strategy :
39
37
fail-fast : false
40
38
matrix :
52
50
# - macOS-13
53
51
- macOS-latest
54
52
test_group :
55
- - core
53
+ - basic
54
+ - control_flow
55
+ - reduced_core
56
56
- neural_networks
57
57
- integration
58
58
runtime :
61
61
assertions :
62
62
- false
63
63
include :
64
- - os : linux-x86-ct6e-180-4tpu
65
- version : " 1.11"
66
- assertions : false
67
- test_group : core
68
- runtime : " IFRT"
69
64
- os : ubuntu-24.04
70
65
version : " 1.10"
71
66
assertions : true
@@ -93,17 +88,25 @@ jobs:
93
88
# libReactant: packaged
94
89
# version: '1.10'
95
90
# test_group: integration
91
+ env :
92
+ TMPDIR : ${{ github.workspace }}/tmp
93
+ JULIA_DEPOT_PATH : " ${{ github.workspace }}/.julia_depot:"
96
94
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}
103
95
- uses : actions/checkout@v4
104
96
- name : Create TMPDIR
105
97
run : |
106
98
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 }}-
107
110
- uses : julia-actions/setup-julia@v2
108
111
if : ${{ ! matrix.assertions }}
109
112
with :
@@ -170,4 +173,4 @@ jobs:
170
173
- uses : julia-actions/julia-processcoverage@v1
171
174
- uses : codecov/codecov-action@v5
172
175
with :
173
- files : lcov.info
176
+ files : lcov.info
0 commit comments