-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 1.18 KB
/
build.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: Build example
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# https://github.com/ARM-software/cmsis-actions
- name: Activate vcpkg
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
config: "./vcpkg-configuration.json"
# https://github.com/ARM-software/cmsis-actions
- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
- name: Cache downloaded packs
uses: actions/cache@v4
with:
key: cmsis-packs-download
path: /home/runner/.cache/arm/packs/.Download
# Initialize and update the index of CMSIS packs available online
- name: Initialize CMSIS pack root folder
run: |
cpackget init https://www.keil.com/pack/index.pidx
cpackget update-index
# Build the release and debug executable for the AC6 compiler
- name: Build release and debug executable
run: |
cbuild hello.csolution.yml --packs --context .+B-U585I-IOT02A --rebuild