mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-09-01 18:53:50 +00:00
Move cargo build first in CI (#5933)
* Trying to fix cargo test ci 1. * 2 * 3 * 3 * Print output * Try empty restrict key * Try empty * Updating from main. * Use cargo nextest, change CI order to build, test, clippy. * Dont run clippy for all targets. * Forgot run * Forgot another. * Remove nextest. * Fixing perm
This commit is contained in:
parent
66a8095d4e
commit
29254b1e45
1 changed files with 13 additions and 13 deletions
|
@ -113,14 +113,14 @@ steps:
|
||||||
when:
|
when:
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
|
|
||||||
cargo_clippy:
|
cargo_build:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: .cargo_home
|
CARGO_HOME: .cargo_home
|
||||||
RUSTUP_HOME: .rustup_home
|
RUSTUP_HOME: .rustup_home
|
||||||
commands:
|
commands:
|
||||||
- rustup component add clippy
|
- cargo build
|
||||||
- cargo clippy --workspace --tests --all-targets -- -D warnings
|
- mv target/debug/lemmy_server target/lemmy_server
|
||||||
when: *slow_check_paths
|
when: *slow_check_paths
|
||||||
|
|
||||||
# `DROP OWNED` doesn't work for default user
|
# `DROP OWNED` doesn't work for default user
|
||||||
|
@ -154,6 +154,16 @@ steps:
|
||||||
- cargo test --workspace --no-fail-fast
|
- cargo test --workspace --no-fail-fast
|
||||||
when: *slow_check_paths
|
when: *slow_check_paths
|
||||||
|
|
||||||
|
cargo_clippy:
|
||||||
|
image: *rust_image
|
||||||
|
environment:
|
||||||
|
CARGO_HOME: .cargo_home
|
||||||
|
RUSTUP_HOME: .rustup_home
|
||||||
|
commands:
|
||||||
|
- rustup component add clippy
|
||||||
|
- cargo clippy --workspace --tests -- -D warnings
|
||||||
|
when: *slow_check_paths
|
||||||
|
|
||||||
# make sure api builds with default features (used by other crates relying on lemmy api)
|
# make sure api builds with default features (used by other crates relying on lemmy api)
|
||||||
check_api_common_default_features:
|
check_api_common_default_features:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
|
@ -183,16 +193,6 @@ steps:
|
||||||
- "cargo check --target wasm32-unknown-unknown -p lemmy_api_common"
|
- "cargo check --target wasm32-unknown-unknown -p lemmy_api_common"
|
||||||
when: *slow_check_paths
|
when: *slow_check_paths
|
||||||
|
|
||||||
cargo_build:
|
|
||||||
image: *rust_image
|
|
||||||
environment:
|
|
||||||
CARGO_HOME: .cargo_home
|
|
||||||
RUSTUP_HOME: .rustup_home
|
|
||||||
commands:
|
|
||||||
- cargo build
|
|
||||||
- mv target/debug/lemmy_server target/lemmy_server
|
|
||||||
when: *slow_check_paths
|
|
||||||
|
|
||||||
check_diesel_schema:
|
check_diesel_schema:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue