Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on: [push]

jobs:
smoketest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: smoketest
run: |
docker pull tinygo/tinygo-dev
docker run --rm -v $GITHUB_WORKSPACE:/workspace -w /workspace tinygo/tinygo-dev tinygo version
docker run --rm -v $GITHUB_WORKSPACE:/workspace -w /workspace tinygo/tinygo-dev /bin/sh -c "git config --global --add safe.directory /workspace && make test-gen-def && make smoketest"

- name: Upload uf2 files
uses: actions/upload-artifact@v3
with:
name: uf2-files
path: ./out/*.uf2
20 changes: 11 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
smoketest: FORCE
go build .
tinygo build -o /tmp/out.uf2 --target xiao-rp2040 --size short ./targets/fric10key/
tinygo build -o /tmp/out.uf2 --target gopher-badge --size short ./targets/gopher-badge/
tinygo build -o /tmp/out.uf2 --target macropad-rp2040 --size short ./targets/macropad-rp2040/
tinygo build -o /tmp/out.uf2 --target xiao-rp2040 --size short ./targets/sgkb/left/
tinygo build -o /tmp/out.uf2 --target xiao-rp2040 --size short ./targets/sgkb/left-0.3.0/
tinygo build -o /tmp/out.uf2 --target xiao-rp2040 --size short ./targets/sgkb/right/
tinygo build -o /tmp/out.uf2 --target xiao-rp2040 --size short ./targets/sgkey/
tinygo build -o /tmp/out.uf2 --target wioterminal --size short ./targets/wiokey/
tinygo build -o /tmp/out.uf2 --target xiao-rp2040 --size short ./targets/xiao-kb01/
mkdir -p out
tinygo build -o ./out/fric10key.uf2 --target xiao-rp2040 --size short ./targets/fric10key/
tinygo build -o ./out/gopher-badge.uf2 --target gopher-badge --size short ./targets/gopher-badge/
tinygo build -o ./out/macropad-rp2040.uf2 --target macropad-rp2040 --size short ./targets/macropad-rp2040/
tinygo build -o ./out/sgkb-left.uf2 --target xiao-rp2040 --size short ./targets/sgkb/left/
tinygo build -o ./out/sgkb-left-0.3.0.uf2 --target xiao-rp2040 --size short ./targets/sgkb/left-0.3.0/
tinygo build -o ./out/sgkb-right.uf2 --target xiao-rp2040 --size short ./targets/sgkb/right/
tinygo build -o ./out/sgkey.uf2 --target xiao-rp2040 --size short ./targets/sgkey/
tinygo build -o ./out/wiokey.uf2 --target wioterminal --size short ./targets/wiokey/
tinygo build -o ./out/xiao-kb01.uf2 --target xiao-rp2040 --size short ./targets/xiao-kb01/

FORCE:

Expand All @@ -25,6 +26,7 @@ gen-def:
go run ./cmd/gen-def/main.go ./targets/xiao-kb01/vial.json

test-gen-def: gen-def-with-find
git status
test -z "$$(git status -s)"

test-gen-def-uno: gen-def-with-find
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ require (

require github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect

replace (
github.com/bgould/tinygo-rotary-encoder => github.com/akif999/tinygo-rotary-encoder delete_override_definitions
)
replace github.com/bgould/tinygo-rotary-encoder => github.com/akif999/tinygo-rotary-encoder v0.0.0-20230411081648-5d87ee99295e
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/akif999/tinygo-rotary-encoder v0.0.0-20230411081648-5d87ee99295e h1:3KD1UE/W4pcKMlfR4PdbvksAB1/F1mu0RqqK2r7wOg0=
github.com/akif999/tinygo-rotary-encoder v0.0.0-20230411081648-5d87ee99295e/go.mod h1:vozFQeh667GysGEvJ6GKutjAOilleV5usLdxYan+XYM=
github.com/bgould/http v0.0.0-20190627042742-d268792bdee7/go.mod h1:BTqvVegvwifopl4KTEDth6Zezs9eR+lCWhvGKvkxJHE=
github.com/bgould/tinygo-rotary-encoder v0.0.0-20221224155058-c26fcc9a3d20 h1:V+y/i2c6xdvTB/gmiYdlj1/lc9XVEPDysxe6+7U5Yt4=
github.com/bgould/tinygo-rotary-encoder v0.0.0-20221224155058-c26fcc9a3d20/go.mod h1:vozFQeh667GysGEvJ6GKutjAOilleV5usLdxYan+XYM=
github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts=
github.com/frankban/quicktest v1.10.2/go.mod h1:K+q6oSqb0W0Ininfk863uOk1lMy69l/P6txr3mVT54s=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
Expand Down