Skip to content

Commit b0793fb

Browse files
committed
make: add makefile with some build/smoketest tasks
Signed-off-by: deadprogram <[email protected]>
1 parent 7fa5907 commit b0793fb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
clean:
3+
@rm -rf build
4+
5+
FMT_PATHS = ./
6+
7+
fmt-check:
8+
@unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] && exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo " $$fn"; done; exit 1
9+
10+
smoke-test:
11+
@mkdir -p build
12+
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/blinky
13+
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/i2s
14+
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
15+
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/tufty
16+
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b
17+
18+
test: clean fmt-check smoke-test

0 commit comments

Comments
 (0)