From aacd1c2ea38f9692a2404f67255753ea50fdc909 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 13 Dec 2024 20:00:13 -0800 Subject: [PATCH 1/2] Append zeros to toolchain versions truncated by GitHub --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index b050545..5281d42 100644 --- a/action.yml +++ b/action.yml @@ -41,6 +41,8 @@ runs: fi elif [[ $toolchain =~ ^stable' 'minus' '[0-9]+' 'releases?$ ]]; then echo "toolchain=1.$((($(date +%s)/60/60/24-16569)/7/6-${toolchain//[^0-9]/}))" >> $GITHUB_OUTPUT + elif [[ $toolchain =~ ^1\.[0-9]+$ ]]; then + echo "toolchain=1.$((i=${toolchain#1.}, c=($(date +%s)/60/60/24-16569)/7/6, i+9*i*(10*i<=c)+90*i*(100*i<=c)))" >> $GITHUB_OUTPUT else echo "toolchain=$toolchain" >> $GITHUB_OUTPUT fi From 5fa1c61d475e87a81169e2f0527ce40df4de5b9a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 13 Dec 2024 20:53:00 -0800 Subject: [PATCH 2/2] toolchain: beta --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5281d42..c404e80 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: beta targets: description: Comma-separated list of target triples to install for this toolchain required: false