@@ -90,23 +90,15 @@ jobs:
9090 with :
9191 version : ${{ matrix.julia_version }}
9292
93- # https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484
94- - name : Cache artifacts
95- uses : actions/cache@v1
96- env :
97- cache-name : cache-artifacts
98- with :
99- path : ~/.julia/artifacts
100- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
101- restore-keys : |
102- ${{ runner.os }}-test-${{ env.cache-name }}-
103- ${{ runner.os }}-test-
104- ${{ runner.os }}-
93+ - uses : julia-actions/cache@v1
10594
106- - name : " add MPIPreferences"
107- run : julia --project -e 'using Pkg; Pkg.develop(path="lib/MPIPreferences")'
108- - name : " Use system binary"
109- run : julia --project -e 'using MPIPreferences; MPIPreferences.use_system_binary()'
95+ - name : add MPIPreferences, use system
96+ shell : julia --color=yes --project=test {0}
97+ run : |
98+ using Pkg
99+ Pkg.develop(path="lib/MPIPreferences")
100+ using MPIPreferences
101+ MPIPreferences.use_system_binary(export_prefs=true)
110102 - uses : julia-actions/julia-buildpkg@latest
111103 - uses : julia-actions/julia-runtest@latest
112104 env :
@@ -153,16 +145,14 @@ jobs:
153145
154146 - uses : julia-actions/cache@v1
155147
156- - name : add MPIPreferences
157- shell : julia --color=yes --project=. {0}
148+ - name : add MPIPreferences, use system
149+ shell : julia --color=yes --project=test {0}
158150 run : |
159151 using Pkg
160152 Pkg.develop(path="lib/MPIPreferences")
161- - name : Use system binary
162- shell : julia --color=yes --project=. {0}
163- run : |
164153 using MPIPreferences
165- MPIPreferences.use_system_binary()
154+ MPIPreferences.use_system_binary(export_prefs=true)
155+
166156 - uses : julia-actions/julia-buildpkg@latest
167157 - uses : julia-actions/julia-runtest@latest
168158
@@ -221,18 +211,7 @@ jobs:
221211 with :
222212 version : ${{ matrix.julia_version }}
223213
224- # https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484
225- - name : Cache artifacts
226- uses : actions/cache@v1
227- env :
228- cache-name : cache-artifacts
229- with :
230- path : ~/.julia/artifacts
231- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
232- restore-keys : |
233- ${{ runner.os }}-test-${{ env.cache-name }}-
234- ${{ runner.os }}-test-
235- ${{ runner.os }}-
214+ - uses : julia-actions/cache@v1
236215
237216 # we can't use the usual actions here as we need to ensure the environment variables are set
238217 - name : " Build package"
0 commit comments