From c62feda19839dd4bf0610d464f4d489b2d7a8acc Mon Sep 17 00:00:00 2001 From: CleverWild Date: Sat, 4 Apr 2026 15:15:03 +0200 Subject: [PATCH 1/2] 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 -- 2.49.1 From 89e2daf05ac98f96c6f9c60e67530c757d56c646 Mon Sep 17 00:00:00 2001 From: CleverWild Date: Sat, 4 Apr 2026 15:22:09 +0200 Subject: [PATCH 2/2] ci: fix step name --- .woodpecker/server-compile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/server-compile.yaml b/.woodpecker/server-compile.yaml index 0e0188d..2d258ef 100644 --- a/.woodpecker/server-compile.yaml +++ b/.woodpecker/server-compile.yaml @@ -8,7 +8,7 @@ when: include: [".woodpecker/server-*.yaml", "server/**"] steps: - - name: test + - name: compile image: jdxcode/mise:latest directory: server environment: @@ -20,7 +20,7 @@ steps: - 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 + # Install only the necessary Rust toolchain - mise install rust - mise install protoc - cargo check --all-features -- 2.49.1