mirror of
https://codeberg.org/JasterV/event_bus.rs.git
synced 2026-04-27 02:15:41 +00:00
feat: use our own rust docker image
This commit is contained in:
parent
2e233180c6
commit
a0c54df4a3
1 changed files with 2 additions and 30 deletions
|
|
@ -2,44 +2,16 @@ when:
|
||||||
- event: [push, pull_request]
|
- event: [push, pull_request]
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
# Define common environment variables for all steps
|
|
||||||
variables:
|
|
||||||
- &rust_env
|
|
||||||
CARGO_HOME: ${CI_WORKSPACE}/.cargo
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
- &pre_cmds
|
|
||||||
- export PATH=${CI_WORKSPACE}/.cargo/bin:$PATH
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
setup:
|
|
||||||
image: rust:1.93.1
|
|
||||||
environment:
|
|
||||||
<<: *rust_env
|
|
||||||
commands:
|
|
||||||
- <<: *pre_cmds
|
|
||||||
- apt-get update && apt-get install -y coreutils
|
|
||||||
- rustup component add clippy rustfmt
|
|
||||||
# Install cargo-binstall into our local bin folder
|
|
||||||
- mkdir -p .cargo/bin
|
|
||||||
- curl -Lskj https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | tar -xz -C .cargo/bin
|
|
||||||
# Binstall will now use the CARGO_HOME we defined
|
|
||||||
- cargo binstall --no-confirm cargo-make cargo-deny cargo-nextest
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: rust:1.93.1
|
image: jasterv/rust-ci:latest
|
||||||
environment:
|
|
||||||
<<: *rust_env
|
|
||||||
commands:
|
commands:
|
||||||
- <<: *pre_cmds
|
|
||||||
- cargo make -p ci fmt-check
|
- cargo make -p ci fmt-check
|
||||||
- cargo make -p ci clippy
|
- cargo make -p ci clippy
|
||||||
- cargo make -p ci deny-check
|
- cargo make -p ci deny-check
|
||||||
- cargo make -p ci docs
|
- cargo make -p ci docs
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: rust:1.93.1
|
image: jasterv/rust-ci:latest
|
||||||
environment:
|
|
||||||
<<: *rust_env
|
|
||||||
commands:
|
commands:
|
||||||
- <<: *pre_cmds
|
|
||||||
- cargo make -p ci test
|
- cargo make -p ci test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue