Skip to content

Commit

Permalink
make: add makefile with some build/smoketest tasks
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <ron@hybridgroup.com>
  • Loading branch information
deadprogram committed Dec 19, 2024
1 parent 7fa5907 commit b0793fb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

clean:
@rm -rf build

FMT_PATHS = ./

fmt-check:
@unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] && exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo " $$fn"; done; exit 1

smoke-test:
@mkdir -p build
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/blinky
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/i2s
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/tufty
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b

test: clean fmt-check smoke-test

0 comments on commit b0793fb

Please # to comment.