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
| ... | ... | @@ -13,8 +13,4 @@ ENV PATH=/usr/local/zig:$PATH | |
| 13 | 13 | ||
| 14 | 14 | WORKDIR /app | |
| 15 | 15 | ||
| 16 | - | COPY . /app/ | |
| 17 | - | ||
| 18 | - | RUN zig build | |
| 19 | - | ||
| 20 | - | CMD ["zig", "build"] | |
| 16 | + | CMD ["zig"] |
M
pico.sh
+4,
-3
| ... | ... | @@ -8,9 +8,10 @@ BRANCH="${PICI_BRANCH:-tmp}" | |
| 8 | 8 | echo "running ci event=${EVENT} session=${ZMX_SESSION_PREFIX}" | |
| 9 | 9 | ||
| 10 | 10 | zmx run build docker build -t zig-zmx . | |
| 11 | - | zmx run fmt -d docker run --rm -t zig-zmx:latest zig fmt --check . | |
| 12 | - | zmx run test -d docker run --rm -t zig-zmx:latest zig build test | |
| 13 | - | zmx run integration -d docker run --rm -t zig-zmx:latest bats --jobs 1 test/*.bats | |
| 11 | + | zmx run fmt -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest zig fmt --check . | |
| 12 | + | zmx run test -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest zig build test | |
| 13 | + | zmx run bin -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest zig build | |
| 14 | + | zmx run integration -d docker run --rm -v "$(pwd):/app" -t zig-zmx:latest bats --jobs 1 test/*.bats | |
| 14 | 15 | zmx wait "*" | |
| 15 | 16 | ||
| 16 | 17 | zmx run upload-build docker build -t zmx-upload -f Dockerfile.upload . |