Skip to content

Update CMakeLists.txt to use in CI workflow #6

Update CMakeLists.txt to use in CI workflow

Update CMakeLists.txt to use in CI workflow #6

Workflow file for this run

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