From edb986656bc4a66e3a467034d037e40a43fa145d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lteri=C5=9F=20Ero=C4=9Flu?= Date: Sun, 13 Sep 2020 02:14:37 +0300 Subject: [PATCH] Create firmware.yml --- .github/workflows/firmware.yml | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/firmware.yml diff --git a/.github/workflows/firmware.yml b/.github/workflows/firmware.yml new file mode 100644 index 0000000..1502748 --- /dev/null +++ b/.github/workflows/firmware.yml @@ -0,0 +1,39 @@ +name: Firmware Build + +on: + push: + paths: + - "Firmware/**" + pull_request: + paths: + - "Firmware/**" + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Cleanup similar named things from root + run: rm Chameleon* + - name: Print Kernel Ver + run: uname -a + - name: Update APT + run: sudo apt-get update -yqq + - name: Install AVR GCC Suite + run: sudo apt-get install -yqq make autoconf build-essential ca-certificates pkg-config libreadline-dev gcc-avr binutils-avr gdb-avr avr-libc avrdude + - name: Make Firmware + run: make + working-directory: Firmware/Chameleon-Mini/ + - name: Move hex file to root + run: mv Chameleon*.hex $GITHUB_WORKSPACE/ + working-directory: Firmware/Chameleon-Mini/ + - name: Move eep file to root + run: mv Chameleon*.eep $GITHUB_WORKSPACE/ + working-directory: Firmware/Chameleon-Mini/ + - name: Upload Build Artifact + uses: actions/upload-artifact@v2.1.4 + with: + name: "ChameleonBuild" + path: "Chameleon*.*"