Skip to content

Commit

Permalink
don't use act for now
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Sep 22, 2024
1 parent e57ebee commit b5a26f3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
11 changes: 11 additions & 0 deletions check-before-push-act.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/zsh

set -e

export CARGO_TERM_COLOR=always
export RUSTFLAGS="-Dwarnings"
export RUSTDOCFLAGS="-Dwarnings"

cargo fmt --all
cargo clippy --release --all-targets --fix --allow-dirty --allow-staged
act --action-offline-mode -W .github/workflows/build_and_tests_reusable.yaml
33 changes: 32 additions & 1 deletion check-before-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,35 @@ export RUSTDOCFLAGS="-Dwarnings"

cargo fmt --all
cargo clippy --release --all-targets --fix --allow-dirty --allow-staged
act --action-offline-mode -W .github/workflows/build_and_tests_reusable.yaml

cargo build --all-targets --all-features
cargo build --release --all-targets --all-features
cargo fmt --all -- --check
cargo check --all
cargo clippy --all-targets --release -- \
-A clippy::similar_names \
-A clippy::too_many_arguments \
-A clippy::significant_drop_tightening \
-A clippy::redundant_closure \
-A clippy::missing_errors_doc \
-A clippy::type_complexity
cargo doc --workspace --all-features --no-deps
cargo test --release --all --all-features
cargo publish --dry-run --allow-dirty
cargo aur
cargo generate-rpm

cd java-bridge
cargo build --all-targets --all-features
cargo build --release --all-targets --all-features
cargo fmt --all -- --check
cargo check --all
cargo clippy --all-targets --release -- \
-A clippy::similar_names \
-A clippy::too_many_arguments \
-A clippy::significant_drop_tightening \
-A clippy::redundant_closure \
-A clippy::missing_errors_doc \
-A clippy::type_complexity
cargo doc --workspace --all-features --no-deps
cargo test --release --all --all-features

0 comments on commit b5a26f3

Please sign in to comment.