add backtrace feature #53
Workflow file for this run
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
name: Check and Test | ||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: ["1.77", "nightly-2023-12-26"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Override Rust toolchain | ||
run: rustup override set ${{ matrix.toolchain }} | ||
- name: Add Rust components | ||
run: rustup component add rustfmt clippy | ||
- name: Format | ||
run: cargo fmt --check | ||
- name: Build | ||
run: cargo build --all-targets ${{ matrix.toolchain.contains('nightly') && '--all-features' }} | ||
Check failure on line 28 in .github/workflows/check-test.yaml GitHub Actions / Check and TestInvalid workflow file
|
||
- name: Clippy | ||
run: cargo clippy --all-targets ${{ matrix.toolchain.contains('nightly') && '--all-features' }} | ||
- name: Run tests | ||
run: cargo test --all-targets ${{ matrix.toolchain.contains('nightly') && '--all-features' }} |