adding PRODUCT DEFINITION TEMPLATE 4.49 #120
Workflow file for this run
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: Linux | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
# Cancel in-progress workflows when pushing to a branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
env: | |
FC: gfortran | |
CC: gcc | |
strategy: | |
matrix: | |
config: | |
- { | |
options: "-DCMAKE_BUILD_TYPE=Debug" | |
} | |
- { | |
options: "-DBUILD_SHARED_LIBS=ON" | |
} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: build | |
run: | | |
cmake -B build ${{ matrix.config.options }} -DCMAKE_INSTALL_PREFIX=~/install | |
cmake --build build --parallel 2 --verbose | |
- name: test | |
run: | | |
set -x | |
ctest --test-dir build --verbose --output-on-failure --rerun-failed | |
cmake --install build | |
if [ "${{ matrix.config.options }}" = "-DBUILD_SHARED_LIBS=ON" ]; then | |
ls -l ~/install/lib/lib*.so || exit 1 | |
else | |
ls -l ~/install/lib/lib*.a || exit 1 | |
fi |