Skip to content

Commit 50189f2

Browse files
committed
added basic CI build
1 parent 355e3d0 commit 50189f2

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/test_build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test regression
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
# git checkout the PR
10+
- uses: actions/checkout@v3
11+
12+
- name: Install sdcc
13+
run: |
14+
sudo apt-get install -y sdcc
15+
python3 -m pip install intelhex
16+
17+
- name: test build
18+
shell: bash
19+
run: |
20+
tests/test_build.sh
21+
22+
- name: Archive build binaries
23+
uses: actions/upload-artifact@v3
24+
with:
25+
name: SiK build
26+
path: |
27+
Firmware/dst
28+
retention-days: 90

tests/test_build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
cd Firmware
4+
make
5+
make install

0 commit comments

Comments
 (0)