Skip to content

Commit c4cdf81

Browse files
Merge pull request #133 from RIT-EVT/feature/taylor/actions
2 parents 909b20a + 58eaf8d commit c4cdf81

File tree

4 files changed

+114
-2
lines changed

4 files changed

+114
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
env:
1414
GCC_ARM_TOOLS_PATH: /usr/bin
1515

16+
1617
jobs:
1718
build:
1819
# Select the server's operating system
@@ -47,7 +48,8 @@ jobs:
4748
- name: F446 Build
4849
run: |
4950
cmake -DTARGET_DEV=STM32F446xx -B ${{github.workspace}}/build
50-
# cmake --build ${{github.workspace}}/build
51+
cmake --build ${{github.workspace}}/build
52+
5153
# Apply clang-format formatting to the branch and create a new commit if any files are changed
5254
- name: Apply Formatting
5355
run: |

.github/workflows/release.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: Create Sample Builds
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
tags:
8+
- 'v[0-9]+.[0-9]+.[0-9]+'
9+
10+
# Set necessary environment variables
11+
env:
12+
GCC_ARM_TOOLS_PATH: /usr/bin
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
build-backend:
19+
name: Build EVT-Core Samples
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v6
24+
with:
25+
submodules: recursive
26+
27+
- name: Install Compiler and Linter
28+
run: |
29+
sudo apt-get install gcc-arm-none-eabi
30+
sudo apt-get install clang-format-15
31+
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 10000
32+
33+
- name: F302 Debug Build
34+
run: |
35+
cmake -DTARGET_DEV=STM32F302x8 -B ${{github.workspace}}/build/f302/debug
36+
cmake --build ${{github.workspace}}/build/f302/debug
37+
38+
- name: F302 Release Build
39+
run: |
40+
cmake -DTARGET_DEV=STM32F302x8 -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f302/release
41+
cmake --build ${{github.workspace}}/build/f302/release
42+
43+
- name: F334 Debug Build
44+
run: |
45+
cmake -DTARGET_DEV=STM32F334x8 -B ${{github.workspace}}/build/f334/debug
46+
cmake --build ${{github.workspace}}/build/f334/debug
47+
48+
- name: F334 Release Build
49+
run: |
50+
cmake -DTARGET_DEV=STM32F334x8 -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f334/release
51+
cmake --build ${{github.workspace}}/build/f334/release
52+
53+
- name: F446 Debug Build
54+
run: |
55+
cmake -DTARGET_DEV=STM32F446xx -B ${{github.workspace}}/build/f446/debug
56+
cmake --build ${{github.workspace}}/build/f446/debug
57+
58+
- name: F446 Release Build
59+
run: |
60+
cmake -DTARGET_DEV=STM32F446xx -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f446/release
61+
cmake --build ${{github.workspace}}/build/f446/release
62+
63+
- name: Upload f302 Debug Samples
64+
uses: actions/upload-artifact@v6
65+
with:
66+
name: samples-f302-debug
67+
path: |
68+
${{github.workspace}}/build/f302/debug/samples/**/*.bin
69+
!CmakeFiles
70+
71+
- name: Upload f302 Release Samples
72+
uses: actions/upload-artifact@v6
73+
with:
74+
name: samples-f302-release
75+
path: |
76+
${{github.workspace}}/build/f302/release/samples/**/*.bin
77+
!CmakeFiles
78+
79+
- name: Upload f334 Debug Samples
80+
uses: actions/upload-artifact@v6
81+
with:
82+
name: samples-f334-debug
83+
path: |
84+
${{github.workspace}}/build/f334/debug/samples/**/*.bin
85+
!CMakeFiles
86+
87+
- name: Upload f334 Release Samples
88+
uses: actions/upload-artifact@v6
89+
with:
90+
name: samples-f334-release
91+
path: |
92+
${{github.workspace}}/build/f334/release/samples/**/*.bin
93+
!CMakeFiles
94+
95+
- name: Upload f446 Samples
96+
uses: actions/upload-artifact@v6
97+
with:
98+
name: samples-f446-debug
99+
path: |
100+
${{github.workspace}}/build/f446/debug/samples/**/*.bin
101+
!CmakeFiles
102+
103+
- name: Upload f446 Release Samples
104+
uses: actions/upload-artifact@v6
105+
with:
106+
name: samples-f446-release
107+
path: |
108+
${{github.workspace}}/build/f446/release/samples/**/*.bin
109+
!CmakeFiles

include/core/dev/platform/f4xx/IWDGf4xx.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace core::dev {
99

1010
/**
11-
* Implementation of the independent watchdog for STM32f3xx MCUs, which
11+
* Implementation of the independent watchdog for STM32f4xx MCUs, which
1212
* use the low-speed internal RC oscillator to detect software failures and
1313
* trigger a reset.
1414
*/

include/core/manager.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#define RTC_SUPPORTED
4848
#define SPI_SUPPORTED
4949
#define UART_SUPPORTED
50+
#define IWDG_SUPPORTED
5051

5152
#include <core/dev/MCUTimer.hpp>
5253
#include <core/dev/platform/f4xx/IWDGf4xx.hpp>

0 commit comments

Comments
 (0)