-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow and add libopencm3 as submodule
- Loading branch information
1 parent
6cf7d60
commit a2dc331
Showing
4 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Build CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
makefile-build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Dependencies | ||
run: sudo apt-get update && sudo apt-get install -y build-essential make arm-none-eabi-gdb binutils-arm-none-eabi libnewlib-arm-none-eabi | ||
- name: Build | ||
run: git submodule update --init && cd libopencm3 && make && cd ../ && mkdir build && cd build && cmake ../ && make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "libopencm3"] | ||
path = libopencm3 | ||
url = https://github.com/libopencm3/libopencm3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Always declare this before stm32-toolchain.cmake | ||
# | ||
set(MCU STM32F1) | ||
set(LIBOPENCM3_DIR "/home/ami/repos/libopencm3") | ||
set(LIBOPENCM3_DIR "./libopencm3") | ||
set(SERIAL_PORT "/dev/ttyUSB0") |
Submodule libopencm3
added at
1f3abd