Ignore a math test that fails on nightly. #1912
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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/msrv.md | |
on: [push, pull_request] | |
name: CI | |
jobs: | |
rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" | |
- run: cargo fmt --all -- --check | |
# Run clippy on stable only | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" | |
- run: cargo clippy --all-features | |
test-all: | |
name: All Tests | |
needs: [clippy, rustfmt] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- 1.74.1 | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" | |
- run: cargo build | |
- run: cargo test -q | |
test-windows: | |
name: Test on Windows | |
needs: [clippy, rustfmt] | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- 1.74.1 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" | |
- run: cargo test -q | |
test-macos: | |
name: Test on MacOS | |
needs: [clippy, rustfmt] | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- 1.74.1 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" | |
- run: cargo test -q | |
test-old: | |
name: Old rust | |
needs: [clippy, rustfmt] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.70.0 | |
- 1.68.2 | |
- 1.61.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json" | |
- run: sed -i 's/"rsass-cli",/# \0/' Cargo.toml | |
- run: cargo test --package rsass-macros -q |