Update CMakeLists.txt to use in CI workflow #6
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: test-bindings | |
on: | |
push: | |
branches: [main, ci_workflow] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
fortran_bindings: | |
name: Test SPERR Fortran bindings on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone SPERR repository | |
uses: GuillaumeFalourd/clone-github-repo-action@v2.3 | |
with: | |
depth: 1 | |
branch: 'v0.8.1' | |
owner: 'NCAR' | |
repository: 'SPERR' | |
- name: Access cloned repository content | |
run: | | |
echo "ROOT" | |
ls -la | |
echo "CLONED REPO" | |
cd SPERR | |
cmake -S . -B build -DBUILD_CLI_UTILITIES=OFF -DBUILD_UNIT_TESTS=OFF -DCMAKE_VERBOSE_MAKEFILE=ON | |
cmake --build build | |
sudo cmake --install build | |
- name: Clone own repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build executables | |
run: | | |
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON | |
cmake --build build |