forked from sysprog21/lab0-c
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.12 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on: [push, pull_request]
jobs:
lab0-c:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
continue-on-error: true
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: install-dependencies
run: |
.ci/check-sanity.sh
sudo apt-get update
sudo apt-get -q -y install build-essential cppcheck
- name: make
run: |
git clone [email protected]:sysprog21/lab0-c-private || echo "No provisioning profile found"
.ci/check-provisioning.sh
make
- name: make check
run: |
make check || (cat scripts/weeping.raw ; exit 1)
cat scripts/kirby.raw
- name: make test
run: |
make test || (cat scripts/weeping.raw ; exit 1)
cat scripts/kirby.raw
coding-style:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: coding convention
run: |
sudo apt-get install -q -y clang-format-14
.ci/check-newline.sh
.ci/check-format.sh
shell: bash