Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- main
- release/*
- stable
workflow_dispatch:
schedule:
- cron: "30 0 * * 1,3,5" # At 00:30 UTC on Monday, Wednesday, and Friday

Expand All @@ -22,7 +23,7 @@ jobs:
# Do not edit this file in .github/workflows
build-windows-pr: # job-name skip-main skip-stable
runs-on: ${{ matrix.os || 'windows-latest' }}
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-main skip-stable
if: ${{ contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }} # skip-main skip-stable
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
RUST_MIN_STACK: 16777216
Expand Down Expand Up @@ -366,7 +367,7 @@ jobs:
# Do not edit this file in .github/workflows
build-windows-stable: # job-name skip-main skip-pr
runs-on: ${{ matrix.os || 'windows-latest' }}
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || github.event_name == 'schedule' }} # skip-pr skip-main
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} # skip-pr skip-main
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
RUST_MIN_STACK: 16777216
Expand Down Expand Up @@ -544,7 +545,7 @@ jobs:
# Do not edit this file in .github/workflows
build-linux-pr: # job-name skip-main skip-stable
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-main skip-stable
if: ${{ contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }} # skip-main skip-stable
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -886,7 +887,7 @@ jobs:
# Do not edit this file in .github/workflows
build-linux-stable: # job-name skip-main skip-pr
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || github.event_name == 'schedule' }} # skip-pr skip-main
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} # skip-pr skip-main
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -1346,7 +1347,7 @@ jobs:
# Do not edit this file in .github/workflows
build-freebsd-main: # job-name skip-stable
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/'))) || github.event_name == 'schedule' }} # skip-stable
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/'))) || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} # skip-stable
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -1498,7 +1499,7 @@ jobs:
# templating and so on.
build-all-features: # job-name
runs-on: ${{ matrix.os }}
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }}
if: ${{ contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -1564,7 +1565,7 @@ jobs:
with:
tool: mdbook@${{ env.MDBOOK_VERSION }}
- name: Build user-guide (stable)
if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }}
if: ${{ !contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }}
run: |
git checkout stable
# Support both old and new directory structure during the transition
Expand All @@ -1586,7 +1587,7 @@ jobs:
mkdir -p ${{ runner.temp }}/book
mv book ${{ runner.temp }}/book/dev-guide
- name: Deploy to GitHub
if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) && !startsWith(github.ref_name, 'release/') }}
if: ${{ !contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) && !startsWith(github.ref_name, 'release/') }}
run: |
cd ${{ runner.temp }}/book
git config --global init.defaultBranch main
Expand Down
2 changes: 1 addition & 1 deletion ci/actions-templates/all-features-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs: # skip-all
# templating and so on.
build-all-features: # job-name
runs-on: ${{ matrix.os }}
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }}
if: ${{ contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }}
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion ci/actions-templates/freebsd-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs: # skip-main skip-stable
build-freebsd-main: # job-name skip-stable
build-freebsd-stable: # job-name skip-main
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/'))) || github.event_name == 'schedule' }} # skip-stable
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/'))) || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} # skip-stable
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-main
steps:
- uses: actions/checkout@v6
Expand Down
1 change: 1 addition & 0 deletions ci/actions-templates/gen-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
- main
- release/*
- stable
workflow_dispatch:
schedule:
- cron: "30 0 * * 1,3,5" # At 00:30 UTC on Monday, Wednesday, and Friday

Expand Down
4 changes: 2 additions & 2 deletions ci/actions-templates/linux-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs: # skip-main skip-pr skip-stable
build-linux-main: # job-name skip-pr skip-stable
build-linux-stable: # job-name skip-main skip-pr
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-main skip-stable
if: ${{ contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }} # skip-main skip-stable
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/')) }} # skip-pr skip-stable
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || github.event_name == 'schedule' }} # skip-pr skip-main
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} # skip-pr skip-main
permissions:
id-token: write
contents: read
Expand Down
4 changes: 2 additions & 2 deletions ci/actions-templates/test-docs-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs: # skip-all
with:
tool: mdbook@${{ env.MDBOOK_VERSION }}
- name: Build user-guide (stable)
if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }}
if: ${{ !contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }}
run: |
git checkout stable
# Support both old and new directory structure during the transition
Expand All @@ -41,7 +41,7 @@ jobs: # skip-all
mkdir -p ${{ runner.temp }}/book
mv book ${{ runner.temp }}/book/dev-guide
- name: Deploy to GitHub
if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) && !startsWith(github.ref_name, 'release/') }}
if: ${{ !contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) && !startsWith(github.ref_name, 'release/') }}
run: |
cd ${{ runner.temp }}/book
git config --global init.defaultBranch main
Expand Down
4 changes: 2 additions & 2 deletions ci/actions-templates/windows-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs: # skip-main skip-pr skip-stable
build-windows-main: # job-name skip-pr skip-stable
build-windows-stable: # job-name skip-main skip-pr
runs-on: ${{ matrix.os || 'windows-latest' }}
if: ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-main skip-stable
if: ${{ contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) }} # skip-main skip-stable
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/')) }} # skip-pr skip-stable
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || github.event_name == 'schedule' }} # skip-pr skip-main
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} # skip-pr skip-main
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
RUST_MIN_STACK: 16777216
Expand Down
11 changes: 5 additions & 6 deletions src/dist/manifestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,12 @@ impl Manifestation {
}

if !components.is_empty() {
if components.len() > 2 {
info!("downloading {} components", components.len());
} else {
info!(
match &components[..] {
[c] => info!(
"downloading component {}",
components[0].manifest.short_name(&components[0].component),
);
c.manifest.short_name(&c.component),
),
_ => info!("downloading {} components", components.len()),
};

let mut stream = InstallEvents::new(components.into_iter(), Arc::new(self));
Expand Down
2 changes: 1 addition & 1 deletion tests/suite/cli_rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3889,7 +3889,7 @@ async fn custom_toolchain_with_components_toolchains_profile_does_not_err() {
.with_stderr(snapbox::str![[r#"
info: syncing channel updates for nightly-[HOST_TRIPLE]
info: latest update on 2015-01-02 for version 1.3.0 (hash-nightly-2)
info: downloading component cargo
info: downloading 2 components
info: default toolchain set to nightly-[HOST_TRIPLE]

"#]])
Expand Down
Loading