From f1d2179470062dc1c2eee235565cfd69ce07b4e8 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 24 Jun 2023 16:26:12 -0700 Subject: [PATCH 1/7] Omit CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse on rustc 1.70+ --- action.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 68bd1d6..09df7ac 100644 --- a/action.yml +++ b/action.yml @@ -99,12 +99,13 @@ runs: - run: | : enable Cargo sparse registry - # except on 1.66 and 1.67, on which it is unstable + # implemented in 1.66, stabilized in 1.68, made default in 1.70 if [ -z "${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set}" -o -f "${{runner.temp}}"/.implicit_cargo_registries_crates_io_protocol ]; then - touch "${{runner.temp}}"/.implicit_cargo_registries_crates_io_protocol || true - if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | (! grep -q '^release: 1\.6[67]\.'); then + if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: 1\.6[89]\.'; then + touch "${{runner.temp}}"/.implicit_cargo_registries_crates_io_protocol || true echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV - else + elif rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: 1\.6[67]\.'; then + touch "${{runner.temp}}"/.implicit_cargo_registries_crates_io_protocol || true echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git >> $GITHUB_ENV fi fi From bef84232e2e494cdc33979e0bed465f6cda270bf Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 3 Aug 2023 16:14:37 -0700 Subject: [PATCH 2/7] Add 1.71.1 patch release https://blog.rust-lang.org/2023/08/03/Rust-1.71.1.html --- scripts/update-revs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-revs.sh b/scripts/update-revs.sh index 843caa5..897e051 100755 --- a/scripts/update-revs.sh +++ b/scripts/update-revs.sh @@ -10,7 +10,7 @@ fi patch_releases=( 1.12.1 1.15.1 1.22.1 1.24.1 1.26.1 1.26.2 1.27.1 1.27.2 1.29.1 1.29.2 1.30.1 1.31.1 1.34.1 1.34.2 1.41.1 1.43.1 1.44.1 1.45.1 1.45.2 1.52.1 1.56.1 1.58.1 - 1.62.1 1.66.1 1.67.1 1.68.1 1.68.2 + 1.62.1 1.66.1 1.67.1 1.68.1 1.68.2 1.71.1 ) releases() { From 924e68ca730d507a6a4dc34544b164461463ff84 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 4 Sep 2023 22:35:00 -0700 Subject: [PATCH 3/7] Update actions/checkout@v3 -> v4 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 044c008..39b7cef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: rust: 1.0.0 timeout-minutes: 45 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./ name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}} id: toolchain From 6049a3f23992719add69c8d23077df39d134192a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 7 Sep 2023 13:19:27 -0700 Subject: [PATCH 4/7] Work around spurious network errors in curl 8.0 --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 09df7ac..03aef0d 100644 --- a/action.yml +++ b/action.yml @@ -111,5 +111,13 @@ runs: fi shell: bash + - run: | + : work around spurious network errors in curl 8.0 + # https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/timeout.20investigation + if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: 1\.7[01]\.'; then + echo CARGO_HTTP_MULTIPLEXING=false >> $GITHUB_ENV + fi + shell: bash + - run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose shell: bash From 4cc0b31c4d174010aaf8c652f257f782ccb0e24d Mon Sep 17 00:00:00 2001 From: Monius Date: Mon, 18 Sep 2023 02:00:52 +0800 Subject: [PATCH 5/7] Update doc actions/checkout@v3 -> v4 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 86f4262..2ea5437 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ jobs: name: cargo test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo test --all-features ``` From f930f16ed1f3f39022fc20dc28dc5c83cabc26fa Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 19 Sep 2023 08:31:34 -0700 Subject: [PATCH 6/7] Add 1.72.1 patch release --- scripts/update-revs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-revs.sh b/scripts/update-revs.sh index 897e051..4cd3ae5 100755 --- a/scripts/update-revs.sh +++ b/scripts/update-revs.sh @@ -10,7 +10,7 @@ fi patch_releases=( 1.12.1 1.15.1 1.22.1 1.24.1 1.26.1 1.26.2 1.27.1 1.27.2 1.29.1 1.29.2 1.30.1 1.31.1 1.34.1 1.34.2 1.41.1 1.43.1 1.44.1 1.45.1 1.45.2 1.52.1 1.56.1 1.58.1 - 1.62.1 1.66.1 1.67.1 1.68.1 1.68.2 1.71.1 + 1.62.1 1.66.1 1.67.1 1.68.1 1.68.2 1.71.1 1.72.1 ) releases() { From 75aa1b414f42aeff76031e3f0d028d48c9473867 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 19 Sep 2023 08:32:08 -0700 Subject: [PATCH 7/7] toolchain: 1.80.0 --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 03aef0d..91a41bc 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,8 @@ branding: inputs: toolchain: description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification - required: true + required: false + default: 1.80.0 targets: description: Comma-separated list of target triples to install for this toolchain required: false