Skip to content

Commit

Permalink
Add workflow and add libopencm3 as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
amitesh-singh committed Dec 21, 2023
1 parent 6cf7d60 commit a2dc331
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libopencm3"]
path = libopencm3
url = https://github.com/libopencm3/libopencm3
2 changes: 1 addition & 1 deletion config.cmake
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")
1 change: 1 addition & 0 deletions libopencm3
Submodule libopencm3 added at 1f3abd

0 comments on commit a2dc331

Please sign in to comment.