aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas Schodet2024-03-27 21:20:07 +0100
committerNicolas Schodet2024-03-27 21:27:16 +0100
commit6f50cfdd124bbd65e72517fb391b768cd67a5593 (patch)
tree8f7a76459009d99ba9f69c7998290348979afdf4
parentf3a482d683cdbefeaa15ce6781cd44d226722a12 (diff)
Build tests with automatic builds
-rw-r--r--.build.yml4
-rw-r--r--tests/Makefile2
2 files changed, 6 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index e03c781..a1e1834 100644
--- a/.build.yml
+++ b/.build.yml
@@ -4,6 +4,7 @@ packages:
- picolibc-arm-none-eabi
- wget
- unzip
+ - nbc
sources:
- https://git.sr.ht/~ni/nxt-firmware
environment:
@@ -35,3 +36,6 @@ tasks:
make; \
make clean; \
fi
+ - build-tests: |
+ cd nxt-firmware
+ make -C tests build
diff --git a/tests/Makefile b/tests/Makefile
index 9e7d788..cf478ce 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -8,6 +8,8 @@ TESTS = float
tests: $(TESTS:%=%.diff)
+build: $(TESTS:%=%.rxe)
+
%.rxe: %.nxc
$(NBC) $(OPTIMIZE) $(FIRMWARE) -O=$@ $<