Compare commits

...

2 Commits

Author SHA1 Message Date
jaina heartles 082f3e9516 fix syntax
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-18 05:05:22 -08:00
jaina heartles 10f3f33048 Download zig binary once
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-12-18 05:01:55 -08:00
1 changed files with 13 additions and 3 deletions

View File

@ -6,14 +6,24 @@ clone:
lfs: false
pipeline:
fmt:
zig-compiler:
image: alpine
commands:
- echo "Downloading dependencies..."
- apk add curl xz
- echo "Downloading zig binary..."
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
format:
image: alpine
commands:
- echo "Checking formatting..."
- ./zig-linux-x86_64-0.10.0/zig fmt --check src/ tests/ build.zig
unit-tests:
image: alpine
commands:
- apk add sqlite sqlite-dev libpq libpq-dev curl xz
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
- echo "Downloading dependencies..."
- apk add sqlite sqlite-dev libpq libpq-dev
- echo "Running unit tests..."
- ./zig-linux-x86_64-0.10.0/zig build unit