|
| 1 | +name: Check Latest Dependencies |
| 2 | +on: |
| 3 | + schedule: |
| 4 | + # Chosen so that it runs right before the international date line experiences the weekend. |
| 5 | + # Since we're open source, that means globally we should be aware of it right when we have the most |
| 6 | + # time to fix it. |
| 7 | + # |
| 8 | + # Sorry if this ruins your weekend, future maintainer... |
| 9 | + - cron: '0 12 * * FRI' |
| 10 | + workflow_dispatch: # For running manually |
| 11 | + |
| 12 | +env: |
| 13 | + CARGO_TERM_COLOR: always |
| 14 | + HOST: x86_64-unknown-linux-gnu |
| 15 | + FEATURES: "approx,serde,rayon" |
| 16 | + RUSTFLAGS: "-D warnings" |
| 17 | + MSRV: 1.64.0 |
| 18 | + BLAS_MSRV: 1.71.0 |
| 19 | + |
| 20 | +jobs: |
| 21 | + latest_deps_stable: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + name: Check Latest Dependencies on Stable |
| 24 | + steps: |
| 25 | + - name: Check Out Repo |
| 26 | + uses: actions/checkout@v4 |
| 27 | + - name: Install Rust |
| 28 | + uses: dtolnay/rust-toolchain@master |
| 29 | + with: |
| 30 | + toolchain: stable |
| 31 | + - name: Setup Mold Linker |
| 32 | + uses: rui314/setup-mold@v1 |
| 33 | + - name: Setup Rust Cache |
| 34 | + uses: Swatinem/rust-cache@v2 |
| 35 | + - name: Install openblas |
| 36 | + run: sudo apt-get install libopenblas-dev gfortran |
| 37 | + - name: Ensure latest dependencies |
| 38 | + run: cargo update |
| 39 | + - name: Run Tests |
| 40 | + run: ./scripts/all-tests.sh "$FEATURES" stable |
| 41 | + |
| 42 | + latest_deps_msrv: |
| 43 | + runs-on: ubuntu-latest |
| 44 | + name: Check Latest Dependencies on MSRV (${{ env.MSRV }}) |
| 45 | + steps: |
| 46 | + - name: Check Out Repo |
| 47 | + uses: actions/checkout@v4 |
| 48 | + - name: Install Stable Rust for Update |
| 49 | + uses: dtolnay/rust-toolchain@master |
| 50 | + with: |
| 51 | + toolchain: stable |
| 52 | + - name: Setup Mold Linker |
| 53 | + uses: rui314/setup-mold@v1 |
| 54 | + - name: Setup Rust Cache |
| 55 | + uses: Swatinem/rust-cache@v2 |
| 56 | + - name: Install openblas |
| 57 | + run: sudo apt-get install libopenblas-dev gfortran |
| 58 | + - name: Ensure latest dependencies |
| 59 | + # The difference is here between this and `latest_deps_stable` |
| 60 | + run: CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS="fallback" cargo update |
| 61 | + - name: Install MSRV Rust for Test |
| 62 | + uses: dtolnay/rust-toolchain@master |
| 63 | + with: |
| 64 | + toolchain: ${{ env.MSRV }} |
| 65 | + - name: Run Tests |
| 66 | + run: ./scripts/all-tests.sh "$FEATURES" $MSRV |
0 commit comments