80
80
run : lscpu
81
81
82
82
- name : checkout repository
83
- uses : actions/checkout@v4
83
+ uses : actions/checkout@v3
84
84
85
85
- name : install dependencies
86
86
env :
@@ -101,7 +101,7 @@ jobs:
101
101
102
102
- name : restore ccache
103
103
# setup the GitHub cache used to maintain the ccache from one job to the next
104
- uses : actions/cache/restore@v4
104
+ uses : actions/cache/restore@v3
105
105
with :
106
106
path : ~/.ccache
107
107
key : ${{ steps.ccache-prepare.outputs.key }}
@@ -135,22 +135,6 @@ jobs:
135
135
ccache -s
136
136
echo "/usr/lib/ccache" >> $GITHUB_PATH
137
137
138
- - name : check auto-dependency resolution
139
- # no need to check this with all runners. One is enough.
140
- if : ${{ matrix.cc == 'gcc' && matrix.cuda == 'without' }}
141
- run : |
142
- mkdir -p ${GITHUB_WORKSPACE}/build-dep && cd ${GITHUB_WORKSPACE}/build-dep
143
- IFS=':' read -r -a libs <<< "${INSTALLED_LIBS}"
144
- for lib in "${libs[@]}"; do
145
- printf "::group:: \033[0;32m==>\033[0m Configuring to build only \033[0;32m${lib}\033[0m\n"
146
- cmake --fresh \
147
- -DCMAKE_BUILD_TYPE="Release" \
148
- -DBLA_VENDOR="OpenBLAS" \
149
- -DSUITESPARSE_ENABLE_PROJECTS="${lib,,}" \
150
- ..
151
- echo "::endgroup::"
152
- done
153
-
154
138
- name : configure
155
139
run : |
156
140
mkdir -p ${GITHUB_WORKSPACE}/build && cd ${GITHUB_WORKSPACE}/build
@@ -190,7 +174,7 @@ jobs:
190
174
- name : save ccache
191
175
# Save the cache after we are done (successfully) building.
192
176
# This helps to retain the ccache even if the subsequent steps are failing.
193
- uses : actions/cache/save@v4
177
+ uses : actions/cache/save@v3
194
178
with :
195
179
path : ~/.ccache
196
180
key : ${{ steps.ccache-prepare.outputs.key }}
@@ -289,7 +273,7 @@ jobs:
289
273
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
290
274
runs-on : windows-latest
291
275
292
- name : msvc (${{ matrix.cc }} ${{ matrix. openmp }} OpenMP ${{ matrix.cuda }} CUDA, ${{ matrix.link }})
276
+ name : msvc (${{ matrix.openmp }} OpenMP ${{ matrix.cuda }} CUDA, ${{ matrix.link }})
293
277
294
278
defaults :
295
279
run :
@@ -304,7 +288,6 @@ jobs:
304
288
openmp : [with, without]
305
289
cuda : [without]
306
290
link : [both]
307
- cc : [cl]
308
291
include :
309
292
- openmp : without
310
293
openmp-cmake-flags : " -DSUITESPARSE_USE_OPENMP=OFF"
@@ -314,7 +297,6 @@ jobs:
314
297
-DSUITESPARSE_USE_CUDA=ON
315
298
-DCMAKE_CUDA_COMPILER_LAUNCHER="ccache"
316
299
link : both
317
- cc : cl
318
300
- openmp : with
319
301
cuda : with
320
302
cuda-cmake-flags :
@@ -324,11 +306,6 @@ jobs:
324
306
link-cmake-flags :
325
307
-DBUILD_SHARED_LIBS=OFF
326
308
-DBUILD_STATIC_LIBS=ON
327
- cc : cl
328
- - openmp : with
329
- cuda : without
330
- link : both
331
- cc : clang-cl
332
309
333
310
env :
334
311
CHERE_INVOKING : 1
@@ -340,15 +317,15 @@ jobs:
340
317
Get-CIMInstance -Class Win32_Processor | Select-Object -Property Name
341
318
342
319
- name : checkout repository
343
- uses : actions/checkout@v4
320
+ uses : actions/checkout@v3
344
321
345
- - uses : conda-incubator/setup-miniconda@v3
322
+ - uses : conda-incubator/setup-miniconda@v2
346
323
with :
347
324
auto-update-conda : true
348
325
349
326
- name : cache conda packages
350
327
id : conda-cache
351
- uses : actions/cache/restore@v4
328
+ uses : actions/cache/restore@v3
352
329
with :
353
330
path : C:/Miniconda/envs/test
354
331
key : conda:msvc
@@ -384,7 +361,7 @@ jobs:
384
361
385
362
msystem : UCRT64
386
363
387
- - uses : Jimver/cuda-toolkit@v0.2.14
364
+ - uses : Jimver/cuda-toolkit@v0.2.11
388
365
name : install CUDA toolkit
389
366
if : matrix.cuda == 'with'
390
367
id : cuda-toolkit
@@ -424,18 +401,18 @@ jobs:
424
401
shell : msys2 {0}
425
402
run : |
426
403
echo "ccachedir=$(cygpath -m $(${CCACHE} -k cache_dir))" >> $GITHUB_OUTPUT
427
- echo "key=ccache:msvc:root:${{ matrix.cc }}:${{ matrix. openmp }}:${{ matrix.cuda }}:${{ matrix.link }}:${{ github.ref }}:$(date +"%Y-%m-%d_%H-%M-%S"):${{ github.sha }}" >> $GITHUB_OUTPUT
404
+ echo "key=ccache:msvc:root:${{ matrix.openmp }}:${{ matrix.cuda }}:${{ matrix.link }}:${{ github.ref }}:$(date +"%Y-%m-%d_%H-%M-%S"):${{ github.sha }}" >> $GITHUB_OUTPUT
428
405
429
406
- name : restore ccache
430
407
# Setup the GitHub cache used to maintain the ccache from one job to the next
431
- uses : actions/cache/restore@v4
408
+ uses : actions/cache/restore@v3
432
409
with :
433
410
path : ${{ steps.ccache-prepare.outputs.ccachedir }}
434
411
key : ${{ steps.ccache-prepare.outputs.key }}
435
412
# Prefer caches from the same branch. Fall back to caches from the dev branch.
436
413
restore-keys : |
437
- ccache:msvc:root:${{ matrix.cc }}:${{ matrix. openmp }}:${{ matrix.cuda }}:${{ matrix.link }}:${{ github.ref }}
438
- ccache:msvc:root:${{ matrix.cc }}:${{ matrix. openmp }}:${{ matrix.cuda }}:${{ matrix.link }}:
414
+ ccache:msvc:root:${{ matrix.openmp }}:${{ matrix.cuda }}:${{ matrix.link }}:${{ github.ref }}
415
+ ccache:msvc:root:${{ matrix.openmp }}:${{ matrix.cuda }}:${{ matrix.link }}:
439
416
440
417
- name : configure ccache
441
418
# Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota.
@@ -458,8 +435,6 @@ jobs:
458
435
fi
459
436
mkdir -p ${GITHUB_WORKSPACE}/build && cd ${GITHUB_WORKSPACE}/build
460
437
cmake -G"Ninja Multi-Config" \
461
- -DCMAKE_C_COMPILER=${{ matrix.cc }} \
462
- -DCMAKE_CXX_COMPILER=${{ matrix.cc }} \
463
438
-DCMAKE_BUILD_TYPE="Release" \
464
439
-DCMAKE_INSTALL_PREFIX=".." \
465
440
-DCMAKE_PREFIX_PATH="C:/Miniconda/envs/test/Library;${GITHUB_WORKSPACE}/dependencies" \
@@ -501,7 +476,7 @@ jobs:
501
476
- name : save ccache
502
477
# Save the cache after we are done (successfully) building
503
478
# This helps to retain the ccache even if the subsequent steps are failing.
504
- uses : actions/cache/save@v4
479
+ uses : actions/cache/save@v3
505
480
with :
506
481
path : ${{ steps.ccache-prepare.outputs.ccachedir }}
507
482
key : ${{ steps.ccache-prepare.outputs.key }}
@@ -522,9 +497,7 @@ jobs:
522
497
run : |
523
498
cd ${GITHUB_WORKSPACE}/Example/build
524
499
printf "::group::\033[0;32m==>\033[0m Configuring example\n"
525
- cmake -G"Ninja Multi-Config" \
526
- -DCMAKE_C_COMPILER=${{ matrix.cc }} \
527
- -DCMAKE_CXX_COMPILER=${{ matrix.cc }} \
500
+ cmake \
528
501
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/lib/cmake;C:/Miniconda/envs/test/Library;${GITHUB_WORKSPACE}/dependencies" \
529
502
-DBLA_VENDOR="All" \
530
503
${{ matrix.openmp-cmake-flags }} \
@@ -560,9 +533,7 @@ jobs:
560
533
printf "::group:: \033[0;32m==>\033[0m Building with Config.cmake with library \033[0;32m${lib}\033[0m\n"
561
534
cd ${GITHUB_WORKSPACE}/TestConfig/${lib}
562
535
cd build
563
- cmake -G"Ninja Multi-Config" \
564
- -DCMAKE_C_COMPILER=${{ matrix.cc }} \
565
- -DCMAKE_CXX_COMPILER=${{ matrix.cc }} \
536
+ cmake \
566
537
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/lib/cmake;C:/Miniconda/envs/test/Library;${GITHUB_WORKSPACE}/dependencies" \
567
538
..
568
539
cmake --build . --config Release
0 commit comments