Skip to content

Commit e88c9d4

Browse files
committed
updated workflow file
1 parent ffae1de commit e88c9d4

File tree

3 files changed

+20
-65
lines changed

3 files changed

+20
-65
lines changed

.github/workflows/c-cpp.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,30 @@ name: C/C++ CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
1010
build:
11+
strategy:
12+
matrix:
13+
os: [macos-13, macos-latest]
1114

12-
runs-on: macos-latest
15+
runs-on: ${{ matrix.os }}
1316

1417
steps:
15-
- uses: actions/checkout@v4
16-
- name: make
17-
run: make
18-
- name: make test
19-
run: make test
18+
- uses: actions/checkout@v4
19+
- name: build libraries
20+
run: |
21+
make
22+
zip -9 tinyhook.zip libtinyhook.a libtinyhook.dylib include/tinyhook.h
23+
24+
- name: run test
25+
run: make test
26+
27+
- name: upload build artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: tinyhook
31+
path: tinyhook.zip

.github/workflows/main.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/makefile.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)