-
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (56 loc) · 1.47 KB
/
CI.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
paths:
- 'src/**'
- '**.yml'
jobs:
CodeCheck:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
with:
submodules: "recursive"
fetch-depth: 1
- name: cppcheck
uses: Qful/check-action@master
with:
github_token: ${{ secrets.SOC_XIN_TOCKEN }}
enable: all
inconclusive: disable
inline_suppression: disable
force_language: c
force: enable
max_ctu_depth: 2
std: c11
output_file: ./codecheck.txt
other_options: --bug-hunting --verbose --std=c11
- name: report
uses: Qful/check-action@master
env:
GITHUB_TOKEN: ${{ secrets.SOC_XIN_TOCKEN }}
BRANCH_NAME: 'master'
- name: Upload
uses: actions/upload-artifact@v2
with:
name: code_check_report
path: codecheck.txt
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Download SDCC
run: |
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
tar -xf sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
echo `pwd`/sdcc-4.0.0/bin >> $GITHUB_PATH
- name: Build examples
working-directory: src/examples
run: make
- uses: actions/upload-artifact@v2
with:
name: sdcc-examples
path: src/examples/build