-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (68 loc) · 2.14 KB
/
Test-Examples.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Test-Examples # BSP Examples
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: '00 20 * * 6'
jobs:
Test-Examples: # Install tools, build
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout .ci folder
uses: actions/checkout@v4
with:
sparse-checkout: |
.ci
- name: Install tools
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
config: "./.ci/vcpkg-configuration.json"
- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
- name: Checkout current repository
uses: actions/checkout@v4
with:
path: ./BSP
- name: Checkout STM32C0xx_DFP
uses: actions/checkout@v4
with:
repository: Open-CMSIS-Pack/STM32C0xx_DFP
path: ./DFP
- name: Checkout CMSIS-Driver_STM32
uses: actions/checkout@v4
with:
repository: Open-CMSIS-Pack/CMSIS-Driver_STM32
path: ./Drivers
- name: Initialize CMSIS pack root folder
run: |
cpackget init https://www.keil.com/pack/index.pidx
cpackget update-index
- name: Add local CMSIS packs
run: |
cpackget add ./BSP/Keil.STM32C0316-DK_BSP.pdsc
cpackget add ./DFP/Keil.STM32C0xx_DFP.pdsc
cpackget add ./Drivers/ARM.CMSIS-Driver_STM32.pdsc
- name: Copy Blinky example to CI/Examples/ folder
working-directory: ./
run: |
mkdir -p ./CI/Examples/Blinky
cp -rf ./BSP/Examples/Blinky/* ./CI/Examples/Blinky/
- name: Build Blinky AC6
if: always()
working-directory: ./CI/Examples/Blinky
run: |
cbuild ./Blinky.csolution.yml --packs --update-rte --packs --toolchain AC6 --rebuild
- name: Upload Artifact of the Blinky AC6 build
if: always()
uses: actions/upload-artifact@v4
with:
name: Blinky_AC6
path: |
./CI/Examples/Blinky/
!./CI/Examples/Blinky/tmp/
retention-days: 1