Skip to content

Commit

Permalink
Update workflow definitions
Browse files Browse the repository at this point in the history
- Use rust `--no-self-update` flag instead of separate command.
- Add an explicit test for the `git` registry, as the sparse registry is now the default.
  • Loading branch information
Swatinem committed Jul 31, 2023
1 parent dd05243 commit 1e604af
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 32 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ 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 stable --profile minimal --component llvm-tools-preview
- run: rustup toolchain install stable --profile minimal --component llvm-tools-preview --no-self-update

- uses: taiki-e/install-action@cargo-llvm-cov

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,12 @@ jobs:

env:
CARGO_TERM_COLOR: always
CARGO_UNSTABLE_SPARSE_REGISTRY: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

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
- run: rustup toolchain install stable --profile minimal --no-self-update

- uses: ./
with:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ 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 stable --profile minimal
- run: rustup toolchain install stable --profile minimal --no-self-update

- uses: ./

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ 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 stable --profile minimal
- run: rustup toolchain install stable --profile minimal --no-self-update

- uses: ./
with:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/target-dir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ 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 stable --profile minimal
- run: rustup toolchain install stable --profile minimal --no-self-update

# the `workspaces` option has the format `$workspace -> $target-dir`
# and the `$target-dir` is relative to the `$workspace`.
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/workspaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ 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 stable --profile minimal --target wasm32-unknown-unknown
- run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update

- uses: ./
with:
Expand Down

0 comments on commit 1e604af

Please sign in to comment.