File tree Expand file tree Collapse file tree 5 files changed +23
-11
lines changed Expand file tree Collapse file tree 5 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,23 @@ runs:
24
24
run : echo "NUMBA_CACHE_DIR=${{ github.workspace }}/.numba_cache" >> $GITHUB_ENV
25
25
shell : bash
26
26
27
- # Sets the cpu name for numba to use
28
- - name : Set numba cpu env
27
+ # Sets the CPU name for numba to use
28
+ # This is required for reusing the cache across different runners of the same
29
+ # architecture and OS
30
+ - name : Set numba CPU env
29
31
run : echo "NUMBA_CPU_NAME=generic" >> $GITHUB_ENV
30
32
shell : bash
31
33
32
- # Sets the cpu features for numba to use
33
- - name : Set numba cpu features env
34
+ # Sets the CPU features for numba to use
35
+ # Found through a bit of trial and error to run on different CPUs found in GitHub
36
+ # runners
37
+ - name : Set numba CPU features env
34
38
run : echo "NUMBA_CPU_FEATURES=+64bit +adx +aes +avx +avx2 -avx512bf16 -avx512bitalg -avx512bw -avx512cd -avx512dq -avx512er -avx512f -avx512ifma -avx512pf -avx512vbmi -avx512vbmi2 -avx512vl -avx512vnni -avx512vpopcntdq +bmi +bmi2 -cldemote -clflushopt -clwb -clzero +cmov +cx16 +cx8 -enqcmd +f16c +fma -fma4 +fsgsbase +fxsr -gfni +invpcid -lwp +lzcnt +mmx +movbe -movdir64b -movdiri -mwaitx +pclmul -pconfig -pku +popcnt -prefetchwt1 +prfchw -ptwrite -rdpid +rdrnd +rdseed +rtm +sahf -sgx -sha -shstk +sse +sse2 +sse3 +sse4.1 +sse4.2 -sse4a +ssse3 -tbm -vaes -vpclmulqdq -waitpkg -wbnoinvd -xop +xsave -xsavec +xsaveopt -xsaves" >> $GITHUB_ENV
35
39
shell : bash
36
40
37
- # Set the CICD_RUNNING env so that numba knows it is running in a CI environment
38
- - name : Set CICD_RUNNING env
39
- run : echo "CICD_RUNNING =1" >> $GITHUB_ENV
41
+ # Set the CACHING_CICD_RUNNING env so we know to use custom numba caching
42
+ - name : Set CACHING_CICD_RUNNING env
43
+ run : echo "CACHING_CICD_RUNNING =1" >> $GITHUB_ENV
40
44
shell : bash
41
45
42
46
# Get current date for cache restore
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ jobs:
178
178
if : runner.os == 'Linux'
179
179
uses : pierotofy/set-swap-space@v1.0
180
180
with :
181
- swap-size-gb : 4
181
+ swap-size-gb : 6
182
182
183
183
- name : Use numba cache to set env variables but not restore cache
184
184
uses : ./.github/actions/numba_cache
Original file line number Diff line number Diff line change 76
76
if : runner.os == 'Linux'
77
77
uses : pierotofy/set-swap-space@v1.0
78
78
with :
79
- swap-size-gb : 4
79
+ swap-size-gb : 6
80
80
81
81
- if : ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
82
82
name : Restore numba cache
Original file line number Diff line number Diff line change 69
69
if : runner.os == 'Linux'
70
70
uses : pierotofy/set-swap-space@v1.0
71
71
with :
72
- swap-size-gb : 4
72
+ swap-size-gb : 6
73
73
74
74
- uses : actions/download-artifact@v4
75
75
with :
83
83
name : Unix wheel filename
84
84
run : echo "WHEELNAME=$(ls ./dist/aeon-*-none-any.whl)" >> $GITHUB_ENV
85
85
86
+ - name : Use numba cache to set env variables but not restore cache
87
+ uses : ./.github/actions/numba_cache
88
+ with :
89
+ cache_name : " release"
90
+ runner_os : ${{ runner.os }}
91
+ python_version : ${{ matrix.python-version }}
92
+ restore_cache : " false"
93
+
86
94
- if : runner.os == 'Windows'
87
95
name : Windows install
88
96
uses : nick-fields/retry@v3
Original file line number Diff line number Diff line change 6
6
7
7
import numba .core .caching
8
8
9
- if os .environ .get ("CICD_RUNNING " ) == "1" : # pragma: no cover
9
+ if os .environ .get ("CACHING_CICD_RUNNING " ) == "1" : # pragma: no cover
10
10
11
11
def get_invalid_numba_files ():
12
12
"""Get the files that have been changed since the last commit.
You can’t perform that action at this time.
0 commit comments