work around rust analyzer error #551
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
on: | |
push: | |
branches: | |
- main | |
- refactor-3 | |
pull_request: | |
name: Run Tests | |
jobs: | |
msrv: | |
name: msrv-${{ matrix.toolchain }}-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- 1.84.0 | |
os: | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@master | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: llvm-tools-preview | |
- uses: Swatinem/rust-cache@v2 | |
- name: MSRV 1.84.0 | |
run: | |
cd ./faer-traits && | |
cargo check && | |
cd ../faer && | |
cargo check | |
nostd: | |
name: nostd-${{ matrix.toolchain }}-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- nightly-2025-01-08 | |
os: | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@master | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: llvm-tools-preview | |
- uses: Swatinem/rust-cache@v2 | |
- name: nostd | |
run: | |
cd ./faer-no-std-test && | |
cargo run --profile nostd | |
testing: | |
name: testing-${{ matrix.toolchain }}-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- stable | |
os: | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@master | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: llvm-tools-preview | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install latest nextest | |
uses: taiki-e/install-action@nextest | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Collect coverage data | |
run: cd faer && cargo llvm-cov nextest --features=unstable --lcov --output-path ../lcov.info | |
- name: Upload coverage data to codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: lcov.info |