Skip to content

Commit 7c84bbb

Browse files
committed
add new action to test parallel algorithms
1 parent 359cd85 commit 7c84bbb

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/check-tbb.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Spack
17+
uses: spack/setup-spack@v2
18+
with:
19+
ref: develop # Spack version (examples: develop, releases/v0.21)
20+
buildcache: true # Configure oci://ghcr.io/spack/github-actions-buildcache
21+
color: true # Force color output (SPACK_COLOR=always)
22+
path: ${{github.workspace}}/spack # Where to clone Spack
23+
24+
- name: Install TFEL
25+
shell: spack-sh {0}
26+
run: |
27+
# spack install python py-numpy py-pybind11
28+
spack install tbb
29+
spack install tfel@master~python~python_bindings~aster~fortran~abaqus~calculix~ansys~europlexus~cyrano~lsdyna~comsol~diana-fea
30+
- name: cmake
31+
shell: spack-sh {0}
32+
run: |
33+
# spack load python py-numpy py-pybind11
34+
# loading TFEL
35+
spack load tfel
36+
spack load intel-tbb
37+
cmake -DCMAKE_BUILD_TYPE=Release . \
38+
-Denable-c-bindings=ON \
39+
-Denable-fortran-bindings=ON \
40+
-Denable-python-bindings=OFF \
41+
-Denable-portable-build=ON \
42+
-Denable-julia-bindings=OFF \
43+
-DTFEL_DIR=`spack location -i tfel`/share/tfel/cmake \
44+
-Denable-parallel-stl-algorithm=ON
45+
- name: make
46+
shell: spack-sh {0}
47+
run: |
48+
# spack load python py-numpy py-pybind11
49+
spack load tfel
50+
spack load intel-tbb
51+
make
52+
- name: make check
53+
shell: spack-sh {0}
54+
run: |
55+
# spack load python py-numpy py-pybind11 tfel
56+
spack load tfel
57+
spack load intel-tbb
58+
make check

0 commit comments

Comments
 (0)