-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 868 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-License-Identifier: BSD-3-Clause
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++-12
CXX=g++-12 cmake -B build
- name: Build
run: VERBOSE=true make -C build -j `nproc`
- name: Test
run: ctest --test-dir ./build/test/bash