mirror of
https://codeberg.org/JasterV/event_bus.rs.git
synced 2026-04-26 18:10:02 +00:00
Fix CI config (#1)
by moving the PATH re-declaration into the runtime Reviewed-on: https://codeberg.org/JasterV/event_bus.rs/pulls/1 Reviewed-by: Victor Martinez Montané <jasterv@noreply.codeberg.org> Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
c47579a536
commit
2e233180c6
1 changed files with 5 additions and 1 deletions
|
|
@ -6,8 +6,9 @@ when:
|
||||||
variables:
|
variables:
|
||||||
- &rust_env
|
- &rust_env
|
||||||
CARGO_HOME: ${CI_WORKSPACE}/.cargo
|
CARGO_HOME: ${CI_WORKSPACE}/.cargo
|
||||||
PATH: ${CI_WORKSPACE}/.cargo/bin:$PATH
|
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
- &pre_cmds
|
||||||
|
- export PATH=${CI_WORKSPACE}/.cargo/bin:$PATH
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
setup:
|
setup:
|
||||||
|
|
@ -15,6 +16,7 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
<<: *rust_env
|
<<: *rust_env
|
||||||
commands:
|
commands:
|
||||||
|
- <<: *pre_cmds
|
||||||
- apt-get update && apt-get install -y coreutils
|
- apt-get update && apt-get install -y coreutils
|
||||||
- rustup component add clippy rustfmt
|
- rustup component add clippy rustfmt
|
||||||
# Install cargo-binstall into our local bin folder
|
# Install cargo-binstall into our local bin folder
|
||||||
|
|
@ -28,6 +30,7 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
<<: *rust_env
|
<<: *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
|
||||||
|
|
@ -38,4 +41,5 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
<<: *rust_env
|
<<: *rust_env
|
||||||
commands:
|
commands:
|
||||||
|
- <<: *pre_cmds
|
||||||
- cargo make -p ci test
|
- cargo make -p ci test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue