Skip to content

Commit df8d5cc

Browse files
committed
(check-build) added CI
1 parent 549f7d9 commit df8d5cc

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/check-build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check and Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
check_build:
11+
name: Check and Build
12+
runs-on: ubuntu-latest
13+
if: "!contains(github.event.head_commit.message, 'skip-ci')"
14+
timeout-minutes: 30
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v6
18+
19+
- name: Check Test Case Format
20+
run: ./reorder.py -c
21+
22+
- name: Clone sysy-runtime-lib
23+
uses: actions/checkout@v6
24+
with:
25+
repository: pku-minic/sysy-runtime-lib
26+
path: sysy-runtime-lib
27+
28+
- name: Build sysy-runtime-lib
29+
run: make -C sysy-runtime-lib -j
30+
31+
- name: Build Test Cases
32+
run: LIB_DIR=sysy-runtime-lib/build make -j

0 commit comments

Comments
 (0)