Compare commits
2 Commits
main
...
critical-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89e2daf05a | ||
|
|
c62feda198 |
26
.woodpecker/server-compile.yaml
Normal file
26
.woodpecker/server-compile.yaml
Normal file
@@ -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: compile
|
||||||
|
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
|
||||||
|
- mise install rust
|
||||||
|
- mise install protoc
|
||||||
|
- cargo check --all-features
|
||||||
Reference in New Issue
Block a user