mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-01 16:37:53 -04:00
ci(check-and-build-and-test): in the msrv
job, only do the prerequisite step on Windows (the only place not doing it is a problem)
This commit is contained in:
14
.github/workflows/check-and-build-and-test.yml
vendored
14
.github/workflows/check-and-build-and-test.yml
vendored
@@ -207,7 +207,8 @@ jobs:
|
|||||||
- runner: ubuntu-latest
|
- runner: ubuntu-latest
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
- runner: windows-latest
|
- prerequisite_step: rm ~/.cargo/bin/cargo.exe; rm ~/.cargo/bin/rust-analyzer.exe; rm ~/.cargo/bin/rustfmt.exe; rustup update
|
||||||
|
runner: windows-latest
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
name: Verify MSRV of ${{ matrix.crate_directory }} for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
name: Verify MSRV of ${{ matrix.crate_directory }} for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||||
runs-on: ${{ matrix.supporteds.runner }}
|
runs-on: ${{ matrix.supporteds.runner }}
|
||||||
@@ -221,14 +222,9 @@ jobs:
|
|||||||
shared-key: ${{ matrix.supporteds.target }}-latest-variable
|
shared-key: ${{ matrix.supporteds.target }}-latest-variable
|
||||||
cache-on-failure: "true"
|
cache-on-failure: "true"
|
||||||
|
|
||||||
- name: Delete existing cargo
|
- name: Run prerequisite setup step
|
||||||
run: rm ~/.cargo/bin/carg*
|
if: matrix.supporteds.prerequisite_step
|
||||||
- name: Delete existing rust-analyzer
|
run: ${{ matrix.supporteds.prerequisite_step }}
|
||||||
run: rm ~/.cargo/bin/rust-analyze*
|
|
||||||
- name: Delete existing rustfmt
|
|
||||||
run: rm ~/.cargo/bin/rustfm*
|
|
||||||
|
|
||||||
- run: rustup update
|
|
||||||
|
|
||||||
- name: Install cargo-msrv
|
- name: Install cargo-msrv
|
||||||
uses: taiki-e/install-action@v2
|
uses: taiki-e/install-action@v2
|
||||||
|
Reference in New Issue
Block a user