Skip to content

Commit 0f91a36

Browse files
committed
added github actions workflow file
1 parent 489b889 commit 0f91a36

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
include:
14+
- os: macos-13
15+
arch: x86_64
16+
- os: macos-latest
17+
arch: arm64
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: build libraries
24+
run: |
25+
make
26+
zip -j -9 tinyhook-${{ matrix.arch }}.zip libtinyhook.a libtinyhook.dylib include/tinyhook.h
27+
28+
- name: run test
29+
run: make test
30+
31+
- name: upload build artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: tinyhook-${{ matrix.arch }}
35+
path: tinyhook-${{ matrix.arch }}.zip

0 commit comments

Comments
 (0)