-
Notifications
You must be signed in to change notification settings - Fork 1
109 lines (92 loc) · 3.44 KB
/
Copy pathrelease.yml
File metadata and controls
109 lines (92 loc) · 3.44 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Create Sample Builds
on:
workflow_dispatch:
pull_request:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
# Set necessary environment variables
env:
GCC_ARM_TOOLS_PATH: /usr/bin
permissions:
contents: read
jobs:
build-backend:
name: Build EVT-Core Samples
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install Compiler and Linter
run: |
sudo apt-get install gcc-arm-none-eabi
sudo apt-get install clang-format-15
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 10000
- name: F302 Debug Build
run: |
cmake -DTARGET_DEV=STM32F302x8 -B ${{github.workspace}}/build/f302/debug
cmake --build ${{github.workspace}}/build/f302/debug
- name: F302 Release Build
run: |
cmake -DTARGET_DEV=STM32F302x8 -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f302/release
cmake --build ${{github.workspace}}/build/f302/release
- name: F334 Debug Build
run: |
cmake -DTARGET_DEV=STM32F334x8 -B ${{github.workspace}}/build/f334/debug
cmake --build ${{github.workspace}}/build/f334/debug
- name: F334 Release Build
run: |
cmake -DTARGET_DEV=STM32F334x8 -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f334/release
cmake --build ${{github.workspace}}/build/f334/release
- name: F446 Debug Build
run: |
cmake -DTARGET_DEV=STM32F446xx -B ${{github.workspace}}/build/f446/debug
cmake --build ${{github.workspace}}/build/f446/debug
- name: F446 Release Build
run: |
cmake -DTARGET_DEV=STM32F446xx -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f446/release
cmake --build ${{github.workspace}}/build/f446/release
- name: Upload f302 Debug Samples
uses: actions/upload-artifact@v6
with:
name: samples-f302-debug
path: |
${{github.workspace}}/build/f302/debug/samples/**/*.bin
!CmakeFiles
- name: Upload f203 Release Samples
uses: actions/upload-artifact@v6
with:
name: samples-f203-release
path: |
${{github.workspace}}/build/f302/release/samples/**/*.bin
!CmakeFiles
- name: Upload f334 Debug Samples
uses: actions/upload-artifact@v6
with:
name: samples-f334-debug
path: |
${{github.workspace}}/build/f334/debug/samples/**/*.bin
!CMakeFiles
- name: Upload f334 Release Samples
uses: actions/upload-artifact@v6
with:
name: samples-f334-release
path: |
${{github.workspace}}/build/f334/release/samples/**/*.bin
!CMakeFiles
- name: Upload f446 Samples
uses: actions/upload-artifact@v6
with:
name: samples-f446-debug
path: |
${{github.workspace}}/build/f446/debug/samples/**/*.bin
!CmakeFiles
- name: Upload f446 Release Samples
uses: actions/upload-artifact@v6
with:
name: samples-f446-release
path: |
${{github.workspace}}/build/f446/release/samples/**/*.bin
!CmakeFiles