-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.35 KB
/
release.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
name: release
on:
push:
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install CMSIS-Toolbox
run: |
. <(curl https://aka.ms/vcpkg-init.sh -L)
. ~/.vcpkg/vcpkg-init
vcpkg x-update-registry arm
- name: Compile
run: |
. ~/.vcpkg/vcpkg-init
vcpkg use uv2csolution
cd MDK-ARM
uv2csolution CoreMark.uvprojx
vcpkg activate
cpackget init https://arduino.luatos.com/cmsis-pack/AirM2M.pidx
cpackget add AirM2M.AIR001_DFP.1.1.3
cpackget init https://www.keil.com/pack/index.pidx
armlm activate -product KEMDK-COM0 -server https://mdk-preview.keil.arm.com
cbuild CoreMark.csolution.yml --update-rte --packs
vcpkg deactivate
vcpkg use armclang
fromelf --bin --output="out/CoreMark/Project/CoreMark.bin" "out/CoreMark/Project/CoreMark.axf"
fromelf --i32 --output="out/CoreMark/Project/CoreMark.hex" "out/CoreMark/Project/CoreMark.axf"
- name: release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: "Latest"
artifacts: "MDK-ARM/out/CoreMark/Project/CoreMark.hex, MDK-ARM/out/CoreMark/Project/CoreMark.bin"