diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml new file mode 100644 index 00000000..6980abd5 --- /dev/null +++ b/.github/workflows/test_build.yml @@ -0,0 +1,26 @@ +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 + + - 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 100644 index 00000000..5792a87a --- /dev/null +++ b/tests/test_build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd Firmware +make +make install