Compare commits

...

4 Commits

Author SHA1 Message Date
Taiki Endo
d858f81139 Release 2.71.2 2026-04-02 12:27:25 +00:00
Taiki Endo
beb0949bbd Retry on bash startup failure on Windows 2026-04-02 21:10:55 +09:00
Taiki Endo
3e95df35e0 Update mise@latest to 2026.4.1 2026-04-02 11:52:13 +00:00
Taiki Endo
27a3f68117 Update uv@latest to 0.11.3 2026-04-02 00:57:46 +00:00
6 changed files with 144 additions and 50 deletions

View File

@@ -17,6 +17,7 @@ grcov
gungraun
insta
knope
LASTEXITCODE
libicu
linkcheck
mdbook
@@ -38,6 +39,7 @@ sigstore
syft
tombi
udeps
USERPROFILE
wasmtime
watchexec
worktree

View File

@@ -10,6 +10,16 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.71.2] - 2026-04-02
- Implement workaround for [windows-11-arm runner bug](https://github.com/actions/partner-runner-images/issues/169) which sometimes causes installation failure. ([#1657](https://github.com/taiki-e/install-action/pull/1657))
This addresses an issue that was attempted to be worked around in 2.71.0 but was insufficient.
- Update `mise@latest` to 2026.4.1.
- Update `uv@latest` to 0.11.3.
## [2.71.1] - 2026-04-02
- Fix a regression that caused an execution policy violation on self-hosted Windows runner due to use of non-default `powershell` shell, introduced in 2.71.0.
@@ -6111,7 +6121,8 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.71.1...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.71.2...HEAD
[2.71.2]: https://github.com/taiki-e/install-action/compare/v2.71.1...v2.71.2
[2.71.1]: https://github.com/taiki-e/install-action/compare/v2.71.0...v2.71.1
[2.71.0]: https://github.com/taiki-e/install-action/compare/v2.70.4...v2.71.0
[2.70.4]: https://github.com/taiki-e/install-action/compare/v2.70.3...v2.70.4

View File

@@ -52,12 +52,26 @@ runs:
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
ACTION_USER_AGENT: ${{ github.action_repository }} (${{ github.action_ref }})
if: runner.os != 'Windows'
# Workaround for https://github.com/actions/partner-runner-images/issues/169
# TODO: Is it necessary to retry for main.sh call? Or is this sufficient? https://github.com/taiki-e/install-action/pull/1647
# Use pwsh and retry on bash startup failure to work around windows-11-arm runner bug: https://github.com/actions/partner-runner-images/issues/169
- run: |
Set-StrictMode -Version Latest
$action_path = $env:GITHUB_ACTION_PATH
& bash --noprofile --norc "${action_path}/main.sh"
for ($i=1; $i -le 10; $i++) {
$prev_err_action = $ErrorActionPreference
$ErrorActionPreference = "Continue"
& bash --noprofile --norc "$env:GITHUB_ACTION_PATH/main.sh"
$code = $LASTEXITCODE
$ErrorActionPreference = "$prev_err_action"
if (Test-Path "$env:USERPROFILE\.install-action\init") {
# If bash started successfully, main.sh creates init file.
Remove-Item "$env:USERPROFILE\.install-action\init" -Force
exit $code
}
if ($i -lt 10) {
Write-Output "::warning::installation failed due to bash startup failure (<https://github.com/actions/partner-runner-images/issues/169>); retrying..."
}
}
Write-Output "::error::installation failed due to bash startup failure (<https://github.com/actions/partner-runner-images/issues/169>); this maybe resolved by re-running job"
exit 1
shell: pwsh
env:
# NB: Sync with non-Windows case.

83
main.sh
View File

@@ -436,46 +436,6 @@ canonicalize_windows_path() {
esac
}
# cargo-binstall may call `cargo install` on their fallback: https://github.com/taiki-e/install-action/pull/54#issuecomment-1383140833
# cross calls rustup on `cross --version` if the current directly is cargo workspace.
export CARGO_NET_RETRY=10
export RUSTUP_MAX_RETRIES=10
if [[ $# -gt 0 ]]; then
bail "invalid argument '$1'"
fi
export DEBIAN_FRONTEND=noninteractive
manifest_dir="$(dirname -- "$0")/manifests"
# Inputs
tool="${INPUT_TOOL:-}"
tools=()
if [[ -n "${tool}" ]]; then
while read -rd,; do
tools+=("${REPLY}")
done < <(normalize_comma_or_space_separated "${tool}")
fi
if [[ ${#tools[@]} -eq 0 ]]; then
warn "no tool specified; this could be caused by a dependabot bug where @<tool_name> tags on this action are replaced by @<version> tags"
# Exit with 0 for backward compatibility.
# TODO: We want to reject it in the next major release.
exit 0
fi
enable_checksum="${INPUT_CHECKSUM:-}"
case "${enable_checksum}" in
true) ;;
false) enable_checksum='' ;;
*) bail "'checksum' input option must be 'true' or 'false': '${enable_checksum}'" ;;
esac
fallback="${INPUT_FALLBACK:-}"
case "${fallback}" in
none | cargo-binstall | cargo-install) ;;
*) bail "'fallback' input option must be 'none', 'cargo-binstall', or 'cargo-install': '${fallback}'" ;;
esac
# Refs: https://github.com/rust-lang/rustup/blob/HEAD/rustup-init.sh
base_distro=''
exe=''
@@ -590,6 +550,9 @@ cargo_bin="${CARGO_HOME:-"${home}/.cargo"}/bin"
# is used ($CARGO_HOME/bin is most likely not included in the PATH), fallback to
# $install_action_dir/bin.
if [[ "${host_os}" == "windows" ]]; then
mkdir -p -- "${install_action_dir}"
# See action.yml.
touch -- "${install_action_dir}"/init
if type -P cargo >/dev/null; then
info "cargo is located at $(type -P cargo)"
cargo_bin=$(dirname -- "$(type -P cargo)")
@@ -604,6 +567,46 @@ elif [[ ! -e "${cargo_bin}" ]] || [[ "$(type -P cargo || true)" != "${cargo_bin}
cargo_bin="${install_action_dir}/bin"
fi
# cargo-binstall may call `cargo install` on their fallback: https://github.com/taiki-e/install-action/pull/54#issuecomment-1383140833
# cross calls rustup on `cross --version` if the current directly is cargo workspace.
export CARGO_NET_RETRY=10
export RUSTUP_MAX_RETRIES=10
if [[ $# -gt 0 ]]; then
bail "invalid argument '$1'"
fi
export DEBIAN_FRONTEND=noninteractive
manifest_dir="$(dirname -- "$0")/manifests"
# Inputs
tool="${INPUT_TOOL:-}"
tools=()
if [[ -n "${tool}" ]]; then
while read -rd,; do
tools+=("${REPLY}")
done < <(normalize_comma_or_space_separated "${tool}")
fi
if [[ ${#tools[@]} -eq 0 ]]; then
warn "no tool specified; this could be caused by a dependabot bug where @<tool_name> tags on this action are replaced by @<version> tags"
# Exit with 0 for backward compatibility.
# TODO: We want to reject it in the next major release.
exit 0
fi
enable_checksum="${INPUT_CHECKSUM:-}"
case "${enable_checksum}" in
true) ;;
false) enable_checksum='' ;;
*) bail "'checksum' input option must be 'true' or 'false': '${enable_checksum}'" ;;
esac
fallback="${INPUT_FALLBACK:-}"
case "${fallback}" in
none | cargo-binstall | cargo-install) ;;
*) bail "'fallback' input option must be 'none', 'cargo-binstall', or 'cargo-install': '${fallback}'" ;;
esac
case "${host_os}" in
linux)
if ! type -P jq >/dev/null || ! type -P curl >/dev/null || ! type -P tar >/dev/null; then

32
manifests/mise.json generated
View File

@@ -28,13 +28,39 @@
},
"license_markdown": "[MIT](https://github.com/jdx/mise/blob/main/LICENSE)",
"latest": {
"version": "2026.4.0"
"version": "2026.4.1"
},
"2026": {
"version": "2026.4.0"
"version": "2026.4.1"
},
"2026.4": {
"version": "2026.4.0"
"version": "2026.4.1"
},
"2026.4.1": {
"x86_64_linux_musl": {
"etag": "0x8DE90A9CD760EC0",
"hash": "fdbe9804c76f6e223a662cbd7356fefc42e791f5752cc0d5a621ffee81b735e5"
},
"x86_64_macos": {
"etag": "0x8DE90A9CFC11483",
"hash": "8673b9b846d247ba13ccde1bf95b3b8b53fb3eb464f82c59d9787562222e7fd8"
},
"x86_64_windows": {
"etag": "0x8DE90A9D0A67B10",
"hash": "5d2cdf8ed9901a92840154cd2e2046400c03b26f35906c4e9e1a60318b2af83a"
},
"aarch64_linux_musl": {
"etag": "0x8DE90A9C9F9D36E",
"hash": "faca5c453001dafd6caf1f9186cf8640103fabbc29b3218cbac5d8c69f0422d2"
},
"aarch64_macos": {
"etag": "0x8DE90A9CEFE9F12",
"hash": "b7696c98581ffcc45989a777e75982495f23be5cdbfe092523c2915eb196272c"
},
"aarch64_windows": {
"etag": "0x8DE90A9D04E84B7",
"hash": "6d268edf452acd93af983da2a803180987b85140698541a4a587fe17200e8858"
}
},
"2026.4.0": {
"x86_64_linux_musl": {

42
manifests/uv.json generated
View File

@@ -69,10 +69,48 @@
},
"license_markdown": "[Apache-2.0](https://github.com/astral-sh/uv/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/astral-sh/uv/blob/main/LICENSE-MIT)",
"latest": {
"version": "0.11.2"
"version": "0.11.3"
},
"0.11": {
"version": "0.11.2"
"version": "0.11.3"
},
"0.11.3": {
"x86_64_linux_musl": {
"etag": "0x8DE9038B8911496",
"hash": "8b40cf16b849634b81a530a3d0a0bcae5f24996ef9ae782976fd69b6266d3b8e"
},
"x86_64_macos": {
"etag": "0x8DE9038B7D1F6CF",
"hash": "b0e05e0b43a000fdc2132ee3f3400ba5dee427bc2337d3ec4eb8cf4f3d5722af"
},
"x86_64_windows": {
"etag": "0x8DE9038B81129BB",
"hash": "ae681c0aaec7cc96af184648cb88d73f8393ed60fa5880abdd6bdb910f9b227c"
},
"aarch64_linux_musl": {
"etag": "0x8DE9038B57D5EFC",
"hash": "8ecec82cb9a744d5fabff6d16d7777218a7730f699d2aa0d2f751c17858e2efa"
},
"aarch64_macos": {
"etag": "0x8DE9038B4CB51F3",
"hash": "2bc3d0c7bf2bd08325b1e170abac6f7e5b3346e1d4eab3370d17cefec934996f"
},
"aarch64_windows": {
"etag": "0x8DE9038B5421F3E",
"hash": "e99c56f9ab5e1e1ddcaea3e2389990c94baf38e0d7cb2148de08baf2d3261d49"
},
"powerpc64le_linux_gnu": {
"etag": "0x8DE9038B710B885",
"hash": "5cdcadf4d50a5354312bc8ef37c2a6cfab4e2f13ccdf8380d3012b927b4ded95"
},
"riscv64_linux_gnu": {
"etag": "0x8DE9038B746CDFF",
"hash": "8271e07ed9695870f4b0ae5ec722e3ae08fff280068f08bc6a8ca76c67d7fefa"
},
"s390x_linux_gnu": {
"etag": "0x8DE9038B7AA292A",
"hash": "6dc4f555a5f6515f7fddb281422d2a8a3943853dae5de837bbb5d996d7576c71"
}
},
"0.11.2": {
"x86_64_linux_musl": {