From 0f8c0b3885bb9348311191a48240d7b920819724 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sun, 12 Jul 2020 15:20:16 -0400 Subject: [PATCH] Build workflow --- .github/workflows/build-binary.yml | 28 ++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-binary.yml diff --git a/.github/workflows/build-binary.yml b/.github/workflows/build-binary.yml new file mode 100644 index 0000000..4c406e5 --- /dev/null +++ b/.github/workflows/build-binary.yml @@ -0,0 +1,28 @@ +name: Build Binary + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + - name: arm-none-eabi-gcc + uses: fiam/arm-none-eabi-gcc@v1.0.2 + with: + release: '9-2019-q4' + - name: Build Libraries + run: make lib + - name: Build + run: make + - name: Archive + uses: actions/upload-artifact@v1 + with: + name: main.bin + path: build/main.bin \ No newline at end of file diff --git a/Makefile b/Makefile index 66abf81..a83f61b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -TARGET = Main +TARGET = main CPP_SOURCES = src/main.cpp