Skip to content

Add C++ examples, C++ CI #60

Add C++ examples, C++ CI

Add C++ examples, C++ CI #60

Workflow file for this run

name: "CI"
on:
push:
branches:
- main
pull_request:
jobs:
checks:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Checks
uses: pre-commit/[email protected]
gcc:
runs-on: 'ubuntu-latest'
strategy:
matrix:
cxx: [gcc, clang]
name: ${{ matrix.cxx }}
env:
CXX: ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v4
- name: CMake
run: |
sudo apt-get update
sudo apt-get install libhdf5-dev g++-14
cmake -B build
- name: Build
run: VERBOSE=true CXX=g++-14 make -C build -j `nproc`
- name: Test
run: ctest --test-dir ./build/test/bash