Skip to content

Commit d8d8757

Browse files
committed
added .gitignore, and changed workflow to use cmake
1 parent e2de65f commit d8d8757

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build STM32 Project
22

33
on:
44
push:
5-
branches: ["master", "workflows"]
5+
branches: ["master","vscode"]
66
pull_request:
7-
branches: ["master", "workflows"]
7+
branches: ["master", "vscode"]
88

99
jobs:
1010
build:
@@ -19,5 +19,10 @@ jobs:
1919
sudo apt-get update
2020
sudo apt-get install -y gcc-arm-none-eabi
2121
22-
- name: Build project
23-
run: make
22+
- name: Configure project with CMake
23+
run: |
24+
# If you need a toolchain file, add: -DCMAKE_TOOLCHAIN_FILE=path/to/your/toolchain.cmake
25+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
26+
27+
- name: Build project with CMake
28+
run: cmake --build build --config Debug

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

0 commit comments

Comments
 (0)