ci: run lint, tests and build for each commit
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
the CI uses a custom image produced by tools/ci-containerfile. see instructions in the readme. CI logs are at https://woodpecker.qcode.ch/nakamochi/ndgpull/20/head
parent
fe68ae96d6
commit
5c60b92f85
@ -0,0 +1,17 @@
|
|||||||
|
pipeline:
|
||||||
|
lint:
|
||||||
|
image: git.qcode.ch/nakamochi/ci-zig0.10.1:v2
|
||||||
|
commands:
|
||||||
|
- ./tools/fmt-check.sh
|
||||||
|
test:
|
||||||
|
image: git.qcode.ch/nakamochi/ci-zig0.10.1:v2
|
||||||
|
commands:
|
||||||
|
- zig build test
|
||||||
|
aarch64:
|
||||||
|
image: git.qcode.ch/nakamochi/ci-zig0.10.1:v2
|
||||||
|
commands:
|
||||||
|
- zig build -Ddriver=fbev -Dtarget=aarch64-linux-musl
|
||||||
|
sdl2:
|
||||||
|
image: git.qcode.ch/nakamochi/ci-zig0.10.1:v2
|
||||||
|
commands:
|
||||||
|
- zig build -Ddriver=sdl2
|
@ -0,0 +1,15 @@
|
|||||||
|
# ci container file for compiling and testing zig projects.
|
||||||
|
# requires a ZIGURL build arg. for instance:
|
||||||
|
# podman build --rm -t ci-zig0.10.1 -f ci-containerfile \
|
||||||
|
# --build-arg ZIGURL=https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz
|
||||||
|
|
||||||
|
FROM alpine:3.17.1
|
||||||
|
|
||||||
|
ARG ZIGURL
|
||||||
|
RUN apk add --no-cache curl xz sdl2-dev clang15-extra-tools && \
|
||||||
|
mkdir -p /tools/zig && \
|
||||||
|
cd /tools/zig && \
|
||||||
|
curl -o zig.tar.xz $ZIGURL && \
|
||||||
|
tar -xf zig.tar.xz --strip-components=1 && \
|
||||||
|
rm zig.tar.xz
|
||||||
|
ENV PATH="/tools/zig:$PATH"
|
Reference in New Issue