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