-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make: add makefile with some build/smoketest tasks
Signed-off-by: deadprogram <ron@hybridgroup.com>
- Loading branch information
1 parent
7fa5907
commit b0793fb
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |