-
Notifications
You must be signed in to change notification settings - Fork 25
87 lines (72 loc) · 2.5 KB
/
build_net.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
82
83
84
85
86
87
name: Build - Network
on:
workflow_dispatch:
pull_request:
paths:
- '.ci/Network/**'
- .github/workflows/build_net.yml
- 'Examples/Network/**'
- 'Components/Network/**'
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TARGET_TYPE: CM4
TARGET_DEVICE: ARMCM4
TARGET_LAYER: $SolutionDir()$/../../.ci/Board/Board.clayer.yml
jobs:
Build:
strategy:
fail-fast: false
matrix:
compiler: [AC6, GCC]
runs-on: ubuntu-latest
steps:
- name: Checkout MDK-Middleware
uses: actions/checkout@v4
with:
path: ./MDK-Middleware
- name: Setup board layer
working-directory: ./MDK-Middleware
run: |
sed -i "s|target-types:|&\n - type: $TARGET_TYPE\n device: $TARGET_DEVICE\n variables:\n - Board-Layer: $TARGET_LAYER|" ./Examples/Network/Network.csolution.yml
- name: Cache packs
uses: actions/cache@v4
with:
key: cmsis-packs-${{ hashFiles('**/*.csolution.yml', '**/*.cproject.yml', '**/*.clayer.yml') }}
restore-keys: |
cmsis-packs-
path: /home/runner/.cache/arm/packs
- name: Prepare vcpkg env
uses: ARM-software/cmsis-actions/vcpkg@main
with:
config: ./MDK-Middleware/.ci/vcpkg-configuration.json
- name: Initialize CMSIS pack root folder
run: |
cpackget init https://www.keil.com/pack/index.pidx
cpackget update-index
- name: Use local MDK-Middleware pack
working-directory: ./MDK-Middleware/
run: |
cpackget rm Keil.MDK-Middleware || true
cpackget add ./Keil.MDK-Middleware.pdsc
- name: Activate Arm tool license
run: |
armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0
- uses: ammaraskar/gcc-problem-matcher@master
- name: Build Network sources
working-directory: ./MDK-Middleware
if: always()
run: |
cbuild ./.ci/Library.csolution.yml --packs --update-rte --context Network --toolchain ${{ matrix.compiler }}
- name: Build Network examples
working-directory: ./MDK-Middleware/
if: always()
run: |
cbuild ./Examples/Network/Network.csolution.yml --packs --update-rte --toolchain ${{ matrix.compiler }}
- name: Deactivate Arm tool license
if: always()
run: |
armlm deactivate --product KEMDK-COM0