From c62feda19839dd4bf0610d464f4d489b2d7a8acc Mon Sep 17 00:00:00 2001 From: CleverWild Date: Sat, 4 Apr 2026 15:15:03 +0200 Subject: [PATCH] ci: add server compile configuration for CI checks on all features --- .woodpecker/server-compile.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .woodpecker/server-compile.yaml diff --git a/.woodpecker/server-compile.yaml b/.woodpecker/server-compile.yaml new file mode 100644 index 0000000..0e0188d --- /dev/null +++ b/.woodpecker/server-compile.yaml @@ -0,0 +1,26 @@ +when: + - event: pull_request + path: + include: [".woodpecker/server-*.yaml", "server/**"] + - event: push + branch: main + path: + include: [".woodpecker/server-*.yaml", "server/**"] + +steps: + - name: test + image: jdxcode/mise:latest + directory: server + environment: + CARGO_TERM_COLOR: always + CARGO_TARGET_DIR: /usr/local/cargo/target + CARGO_HOME: /usr/local/cargo/registry + volumes: + - cargo-target:/usr/local/cargo/target + - cargo-registry:/usr/local/cargo/registry + commands: + - apt-get update && apt-get install -y pkg-config + # Install only the necessary Rust toolchain and test runner to speed up the CI + - mise install rust + - mise install protoc + - cargo check --all-features