diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0623bd4 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6bccd68 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libopencm3"] + path = libopencm3 + url = https://github.com/libopencm3/libopencm3 diff --git a/config.cmake b/config.cmake index 9732411..df16642 100644 --- a/config.cmake +++ b/config.cmake @@ -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") diff --git a/libopencm3 b/libopencm3 new file mode 160000 index 0000000..1f3abd4 --- /dev/null +++ b/libopencm3 @@ -0,0 +1 @@ +Subproject commit 1f3abd43763fa39d23e737602b6d0011a45c70b2