-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Cmake | ||
|
||
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 dependencies | ||
run: | | ||
sudo apt-get install cmake libboost-all-dev | ||
sudo apt-get install g++ gfortran python3-numpy | ||
sudo apt-get install octave default-jdk | ||
|
||
- name: Install TFEL | ||
shell: spack-sh {0} | ||
run: | | ||
spack install tfel@master | ||
- name: Config MFrontGallery | ||
shell: spack-sh {0} | ||
run: | | ||
spack load tfel | ||
cmake -B ${{github.workspace}}/build \ | ||
-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc \ | ||
-DCMAKE_CXX_COMPILER=g++ \ | ||
-Denable-c=ON -Denable-c++=ON -Denable-excel=ON \ | ||
-Denable-fortran=ON -Denable-python=ON -Denable-java=ON \ | ||
-Denable-octave=ON -Denable-generic=ON -Denable-castem=ON \ | ||
-Denable-castem-behaviours=ON -Denable-aster=ON \ | ||
-Denable-cyrano=ON -Denable-ansys=ON \ | ||
-Denable-europlexus=ON -Denable-calculix=ON \ | ||
-Denable-abaqus=ON -Denable-diana-fea=ON \ | ||
-Denable-zmat=OFF -Denable-fortran-behaviours-wrappers=ON \ | ||
-Denable-mfront-documentation-generation=OFF | ||
|
||
- name: Build MFrontGallery [coverage] | ||
run: cmake --build ${{github.workspace}}/build --config Release | ||
|
||
- name: Run tests | ||
shell: spack-sh {0} | ||
working-directory: ${{github.workspace}}/coverage | ||
run: | | ||
spack load tfel | ||
make check |