Commit 93cd148
Eric Bower
·
2026-07-23 10:18:35 -0400 EDT
parent 06c472d
fix: improve ci script build times
2 files changed,
+5,
-8
M
pico.sh
+1,
-5
1@@ -13,8 +13,4 @@ ENV PATH=/usr/local/zig:$PATH
2
3 WORKDIR /app
4
5-COPY . /app/
6-
7-RUN zig build
8-
9-CMD ["zig", "build"]
10+CMD ["zig"]
M
pico.sh
+4,
-3
1@@ -8,9 +8,10 @@ BRANCH="${PICI_BRANCH:-tmp}"
2 echo "running ci event=${EVENT} session=${ZMX_SESSION_PREFIX}"
3
4 zmx run build docker build -t zig-zmx .
5-zmx run fmt -d docker run --rm -t zig-zmx:latest zig fmt --check .
6-zmx run test -d docker run --rm -t zig-zmx:latest zig build test
7-zmx run integration -d docker run --rm -t zig-zmx:latest bats --jobs 1 test/*.bats
8+zmx run fmt -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest zig fmt --check .
9+zmx run test -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest zig build test
10+zmx run bin -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest zig build
11+zmx run integration -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest bats --jobs 1 test/*.bats
12 zmx wait "*"
13
14 zmx run upload-build docker build -t zmx-upload -f Dockerfile.upload .