update workflow #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 and NumPy | |
shell: spack-sh {0} | |
run: | | |
spack install py-numpy | |
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 py-numpy tfel | |
cmake -DCMAKE_BUILD_TYPE=Release . \ | |
-Denable-c-bindings=ON \ | |
-Denable-fortran-bindings=ON \ | |
-Denable-python-bindings=ON \ | |
-Denable-portable-build=ON \ | |
-Denable-julia-bindings=OFF | |
- name: make | |
shell: spack-sh {0} | |
run: | | |
spack load py-numpy | |
make | |
- name: make check | |
shell: spack-sh {0} | |
run: | | |
spack load py-numpy tfel | |
make check |