Skip to content

Commit 6b79b3e

Browse files
committed
Add basic GitHub Actions CI
1 parent 587d59e commit 6b79b3e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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: cmake -B build
35+
- name: Build
36+
run: make -C build -j `nproc`
37+
- name: Test
38+
run: ctest build/test/bash

0 commit comments

Comments
 (0)