-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid duplicating build_and_test workflow (#397)
- Loading branch information
1 parent
e598d7a
commit 191ffbb
Showing
3 changed files
with
29 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build and Test | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- stable | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | ||
- run: ./panic_safety.sh | ||
- run: cargo fmt --all --check | ||
- run: RUSTFLAGS="-D warnings -F unsafe-code" cargo build --verbose --features "experimental" | ||
- run: RUSTFLAGS="-D warnings -F unsafe-code" cargo build --verbose | ||
- run: cargo doc --all-features --no-deps | ||
- run: cargo clippy --all-features | ||
- run: cargo test --verbose --features "experimental" | ||
- run: cargo test --verbose | ||
- run: cargo test --verbose --no-default-features | ||
- run: cargo test --verbose -- --ignored | ||
- run: cargo bench --no-run | ||
- run: cargo audit --deny warnings # For some reason this hangs if you don't cargo build first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters