From c12bf28aeba856b3941ba5e68992434a7f5640de Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 29 Oct 2023 09:25:40 +1100 Subject: [PATCH] added basic CI build --- .github/workflows/test_build.yml | 28 ++++++++++++++++++++++++++++ tests/test_build.sh | 5 +++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/test_build.yml create mode 100755 tests/test_build.sh diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml new file mode 100644 index 00000000..cf7200d3 --- /dev/null +++ b/.github/workflows/test_build.yml @@ -0,0 +1,28 @@ +name: test regression + +on: [push, pull_request, workflow_dispatch] + +jobs: + test: + runs-on: ubuntu-22.04 + steps: + # git checkout the PR + - uses: actions/checkout@v3 + + - name: Install sdcc + run: | + sudo apt-get install -y sdcc + python3 -m pip install intelhex + + - name: test build + shell: bash + run: | + tests/test_build.sh + + - name: Archive build binaries + uses: actions/upload-artifact@v3 + with: + name: SiK build + path: | + Firmware/dst + retention-days: 90 diff --git a/tests/test_build.sh b/tests/test_build.sh new file mode 100755 index 00000000..5792a87a --- /dev/null +++ b/tests/test_build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd Firmware +make +make install