mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-07-08 14:08:19 +00:00
Compare commits
4 commits
ef2f74f698
...
f9dcea3c47
Author | SHA1 | Date | |
---|---|---|---|
|
f9dcea3c47 | ||
|
5aa646dfb7 | ||
|
a54c7afa93 | ||
|
aacd1c2ea3 |
1 changed files with 5 additions and 1 deletions
|
@ -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: nightly
|
||||
targets:
|
||||
description: Comma-separated list of target triples to install for this toolchain
|
||||
required: false
|
||||
|
@ -18,6 +19,7 @@ inputs:
|
|||
components:
|
||||
description: Comma-separated list of components to be additionally installed
|
||||
required: false
|
||||
default: clippy
|
||||
|
||||
outputs:
|
||||
cachekey:
|
||||
|
@ -41,6 +43,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue