Skip to content

Commit e8bc024

Browse files
committed
Add CI.
1 parent be18b99 commit e8bc024

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "CI"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
10+
jobs:
11+
checks:
12+
runs-on: 'ubuntu-latest'
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.12'
18+
cache: 'pip'
19+
- run: pip install -r requirements.txt
20+
- name: Checks
21+
uses: pre-commit/[email protected]
22+
23+
gcc:
24+
runs-on: 'ubuntu-latest'
25+
strategy:
26+
matrix:
27+
cxx: [gcc, clang]
28+
name: ${{ matrix.cxx }}
29+
env:
30+
CXX: ${{ matrix.cxx }}
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: CMake
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install libhdf5-dev g++-12
37+
cmake -B build
38+
- name: Build
39+
run: VERBOSE=true make -C build -j `nproc`
40+
- name: Test
41+
run: ./build/test/gtest/binsparse-tests

0 commit comments

Comments
 (0)