Skip to content

Commit 35eacf4

Browse files
author
chenglong
committed
Add CI
1 parent c82238a commit 35eacf4

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.x"
28+
29+
- name: Install Meson and Ninja
30+
run: python -m pip install --upgrade meson ninja
31+
32+
- name: Configure
33+
run: meson setup build
34+
35+
- name: Build
36+
run: meson compile -C build
37+
38+
- name: Test
39+
run: meson test -C build --print-errorlogs

0 commit comments

Comments
 (0)