From dea42be16688a82d02e3e0136c7c51c791885155 Mon Sep 17 00:00:00 2001 From: Johann Hemmann Date: Mon, 13 May 2024 15:39:17 +0200 Subject: [PATCH] Fix CI https://github.com/rust-lang/rustup/issues/3709 --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0164a520..bd645ec1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use the latest stable release - run: rustup update stable && rustup default stable + run: | + rustup update --no-self-update stable + rustup default stable - name: Install C libraries for tooling on ubuntu if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev @@ -38,7 +40,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use the latest stable release - run: rustup update stable && rustup default stable + run: | + rustup update --no-self-update stable + rustup default stable - name: Install Rust targets, build defmt crates for no_std targets, build defmt dependent crates for cortex-m targets, build panic-probe with different features run: cargo xtask test-cross @@ -48,7 +52,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use the latest stable release - run: rustup update stable && rustup default stable + run: | + rustup update --no-self-update stable + rustup default stable - name: Run rustfmt & clippy run: cargo xtask test-lint @@ -57,7 +63,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use the latest stable release - run: rustup update stable && rustup default stable + run: | + rustup update --no-self-update stable + rustup default stable - name: Install Rust stable, run all UI tests on the host run: cargo xtask test-ui @@ -67,7 +75,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use the latest stable release - run: rustup update stable && rustup default stable + run: | + rustup update --no-self-update stable + rustup default stable - name: Setup mdBook uses: peaceiris/actions-mdbook@v1 with: @@ -84,8 +94,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use the latest stable release - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - name: Use the latest ${{ matrix.toolchain }} release + run: | + rustup update --no-self-update ${{ matrix.toolchain }} + rustup default ${{ matrix.toolchain }} - name: Install QEMU_TARGET run: rustup target add ${{ env.QEMU_TARGET }} - name: Install dependencies @@ -100,7 +112,9 @@ jobs: with: fetch-depth: 0 - name: Use the latest stable release - run: rustup update stable && rustup default stable + run: | + rustup update --no-self-update stable + rustup default stable - name: Install QEMU_TARGET run: rustup target add ${{ env.QEMU_TARGET }} - name: Install dependencies