From 90429b3dea365e9a1b0cb82d7f98aabf3089dc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Og=C3=B3rek?= Date: Tue, 9 Aug 2022 14:23:59 +0200 Subject: [PATCH] ci: Disable rustup self-updates (#68) --- .github/workflows/coverage.yml | 6 +++++- .github/workflows/install.yml | 6 +++++- .github/workflows/simple.yml | 6 +++++- .github/workflows/sparse-registry.yml | 3 +++ .github/workflows/target-dir.yml | 6 +++++- .github/workflows/workspaces.yml | 6 +++++- 6 files changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3d58428..0605809 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -18,7 +18,11 @@ jobs: steps: - uses: actions/checkout@v3 - - run: rustup toolchain install stable --profile minimal --component llvm-tools-preview + # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked. + # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029 + - run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal --component llvm-tools-preview - uses: taiki-e/install-action@cargo-llvm-cov diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index ba23c86..0d0e4b6 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -18,7 +18,11 @@ jobs: steps: - uses: actions/checkout@v3 - - run: rustup toolchain install stable --profile minimal + # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked. + # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029 + - run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal - uses: ./ diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index a31115f..5e845b4 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -18,7 +18,11 @@ jobs: steps: - uses: actions/checkout@v3 - - run: rustup toolchain install stable --profile minimal + # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked. + # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029 + - run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal - uses: ./ with: diff --git a/.github/workflows/sparse-registry.yml b/.github/workflows/sparse-registry.yml index e543371..ceba6ad 100644 --- a/.github/workflows/sparse-registry.yml +++ b/.github/workflows/sparse-registry.yml @@ -19,7 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 + # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked. + # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029 - run: | + rustup set auto-self-update disable rustup toolchain install nightly --profile minimal rustup default nightly diff --git a/.github/workflows/target-dir.yml b/.github/workflows/target-dir.yml index cebd222..3ee121a 100644 --- a/.github/workflows/target-dir.yml +++ b/.github/workflows/target-dir.yml @@ -18,7 +18,11 @@ jobs: steps: - uses: actions/checkout@v3 - - run: rustup toolchain install stable --profile minimal + # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked. + # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029 + - run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal # the `workspaces` option has the format `$workspace -> $target-dir` # and the `$target-dir` is relative to the `$workspace`. diff --git a/.github/workflows/workspaces.yml b/.github/workflows/workspaces.yml index 925f815..9bcd3d7 100644 --- a/.github/workflows/workspaces.yml +++ b/.github/workflows/workspaces.yml @@ -18,7 +18,11 @@ jobs: steps: - uses: actions/checkout@v3 - - run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown + # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked. + # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029 + - run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown - uses: ./ with: