-
Notifications
You must be signed in to change notification settings - Fork 20
66 lines (53 loc) · 1.44 KB
/
github_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
66
name: GitHub CI
on:
push:
branches: [ stable, development, helios_stage]
pull_request:
branches: [ stable, development, helios_stage]
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
statuses: write
strategy:
fail-fast: true
matrix:
language: ["cpp"]
steps:
- uses: actions/checkout@v4
- name: Configure Git
env:
TOKEN: ${{ secrets.AKASH_VF }}
run: git config --global url."https://${TOKEN}:[email protected]/".insteadOf "https://github.com/"
- name: Fetch Dependencies
run: |
sudo apt install cppcheck ccache -y
make get_avr_tc
make get_riscv_tc
- name: Init CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
debug: true
- name: Build
run: |
make demo_avr
make demo_avr_cpp
make demo_riscv
make demo_helios_avr
make demo_helios_riscv
make demo_qemu_sifive_e
make demo_ibex_ss
- name: Build Cache Stats
run: |
make show_ccache_stats
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
- name: Clean Up
run: |
make clean_workspace