Repository navigation
ci: run latest-deps check daily and add stable clippy #90
This file contains hidden or 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 Latest Dependencies | |
| on: | |
| schedule: | |
| # Daily, so that new Rust releases (lints, deprecations) or dependency releases that break | |
| # the build are caught before they show up as failures on unrelated PRs. | |
| - cron: '0 12 * * *' | |
| workflow_dispatch: # For running manually | |
| pull_request: | |
| paths: | |
| - '.github/workflows/latest-deps.yaml' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| HOST: x86_64-unknown-linux-gnu | |
| FEATURES: "approx,serde,rayon" | |
| RUSTFLAGS: "-D warnings" | |
| MSRV: 1.87.0 | |
| jobs: | |
| latest_clippy_stable: | |
| runs-on: ubuntu-latest | |
| name: Check Clippy with Latest Dependencies on Stable | |
| steps: | |
| - name: Check Out Repo | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| components: clippy | |
| - name: Setup Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Ensure latest dependencies | |
| run: cargo update | |
| - name: Run Clippy | |
| run: cargo clippy -F "$FEATURES" | |
| latest_deps_stable: | |
| runs-on: ubuntu-latest | |
| name: Check Latest Dependencies on Stable | |
| steps: | |
| - name: Check Out Repo | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Setup Mold Linker | |
| uses: rui314/setup-mold@v1 | |
| - name: Setup Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: Install openblas | |
| run: sudo apt-get install libopenblas-dev gfortran | |
| - name: Ensure latest dependencies | |
| run: cargo update | |
| - name: Run Tests | |
| run: ./scripts/all-tests.sh "$FEATURES" stable | |
| latest_deps_msrv: | |
| runs-on: ubuntu-latest | |
| name: Check Latest Dependencies on MSRV | |
| steps: | |
| - name: Check Out Repo | |
| uses: actions/checkout@v4 | |
| - name: Install Stable Rust for Update | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Setup Mold Linker | |
| uses: rui314/setup-mold@v1 | |
| - name: Setup Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: Install openblas | |
| run: sudo apt-get install libopenblas-dev gfortran | |
| - name: Ensure latest dependencies | |
| # The difference is here between this and `latest_deps_stable` | |
| run: CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS="fallback" cargo update | |
| - name: Install MSRV Rust for Test | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env.MSRV }} | |
| - name: Run Tests | |
| run: ./scripts/all-tests.sh "$FEATURES" $MSRV |