Skip to content

Commit 8e44a2f

Browse files
committed
Create c-cpp.yml
1 parent 32dce45 commit 8e44a2f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: configure
18+
run: sudo apt-get update; sudo apt-get install -y musl-tools
19+
- name: make
20+
run: pwd;ls;make
21+
- name: make check
22+
run: make check
23+
- name: make distcheck
24+
run: make distcheck || true

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
all:
2+
$(MAKE) -C cpp
3+
$(MAKE) -C c
4+
$(MAKE) -C js
5+
6+
check:
7+
$(MAKE) $@ -C cpp
8+
$(MAKE) $@ -C c

0 commit comments

Comments
 (0)