Skip to content

Commit 8152051

Browse files
author
Hesamedine Jannesari
committed
add ci.yml
1 parent 4b5292b commit 8152051

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install build essentials
18+
run: sudo apt-get update && sudo apt-get install -y build-essential
19+
20+
- name: Build library
21+
run: make
22+
23+
- name: Run tests
24+
run: make test
25+
26+
- name: Build examples
27+
run: make examples

0 commit comments

Comments
 (0)