Skip to content

Commit 7fa5816

Browse files
authored
Add CUDA_Runtime_jll and Reactant_jll to extras of test env (#564)
This enables us to slightly simplify the CI test job on self-hosted runners: having these package in the extras section of the environment is sufficient for making the preferences set in the Docker image effective, without having to manually install packages.
1 parent c7fb8fd commit 7fa5816

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ jobs:
133133
# means that we have to use the same preferences also for the tests environment,
134134
# because running the tests clears up the load path. Let's copy the global
135135
# preference file to test directory (the global one will be ignored during the
136-
# tests), and add `CUDA_Runtime_jll` to the env to make the preference effective.
137-
cp /usr/local/share/julia/environments/breeze/LocalPreferences.toml test/.
138-
julia --project=test --color=yes --check-bounds=${{ matrix.check-bounds }} -e 'using Pkg; Pkg.Registry.update(); Pkg.add("CUDA_Runtime_jll")'
136+
# tests).
137+
cp -v /usr/local/share/julia/environments/breeze/LocalPreferences.toml test/.
139138
- name: Run tests
140139
shell: bash
141140
run: |

test/Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ Reactant = "0.2.210"
4343
SpecialFunctions = "2"
4444
Statistics = "<0.0.1, 1"
4545
Test = "<0.0.1, 1"
46+
47+
[extras]
48+
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
49+
Reactant_jll = "0192cb87-2b54-54ad-80e0-3be72ad8a3c0"

0 commit comments

Comments
 (0)