forked from zephyrproject-rtos/example-application
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.3 KB
/
build.yml
File metadata and controls
55 lines (45 loc) · 1.3 KB
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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
container: zephyrprojectrtos/ci:latest
env:
CMAKE_PREFIX_PATH: /opt/toolchains
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: example-application
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
debug: true
languages: ${{ matrix.language }}
- name: Initialize
working-directory: example-application
run: |
west init -l .
west update
- name: Build firmware
working-directory: example-application
run: |
west build -b m5stickc_plus app -- -D__CDT_PARSER__=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
- name: Archive firmware
uses: actions/upload-artifact@v2
with:
name: firmware
path: example-application/build/zephyr/zephyr.*