Compare commits

...

20 Commits

Author SHA1 Message Date
Taiki Endo
68f6e9af1b Release 2.39.2 2024-06-18 10:56:06 +09:00
Taiki Endo
d86eb37abb Update dprint@latest to 0.46.3 2024-06-18 10:12:02 +09:00
Taiki Endo
0ed897e40f Update cargo-semver-checks@latest to 0.32.0 2024-06-18 04:17:41 +09:00
Taiki Endo
f6d557a493 Update cargo-dinghy@latest to 0.7.2 2024-06-18 04:17:41 +09:00
Taiki Endo
47943d5b8d Release 2.39.1 2024-06-15 19:27:13 +09:00
Taiki Endo
5b20f8136e Update cargo-binstall@latest to 1.7.1 2024-06-15 18:38:26 +09:00
Taiki Endo
6a5e5c2027 Release 2.39.0 2024-06-15 16:38:52 +09:00
Taiki Endo
69538e2103 Update cargo-binstall@latest to 1.7.0 (#539) 2024-06-15 06:22:13 +00:00
Taiki Endo
a8a128c2d2 Release 2.38.7 2024-06-15 11:38:52 +09:00
Taiki Endo
2bc1761887 Update syft@latest to 1.7.0 2024-06-15 06:52:17 +09:00
Taiki Endo
8a60518f4e Update just@latest to 1.29.1 2024-06-15 06:52:17 +09:00
Taiki Endo
30a11dbd9e Update rclone@latest to 1.67.0 2024-06-15 03:52:33 +09:00
Taiki Endo
3e3b268956 Release 2.38.6 2024-06-15 01:11:08 +09:00
Taiki Endo
19a89ed24b Update just@latest to 1.29.0 2024-06-14 13:05:32 +09:00
Taiki Endo
309ee82715 Release 2.38.5 2024-06-13 09:43:25 +09:00
Taiki Endo
d5ce3a6de4 Update typos@latest to 1.22.7 2024-06-13 03:58:19 +09:00
Taiki Endo
9531aeedc3 Update espup@latest to 0.12.0 2024-06-13 03:58:19 +09:00
Taiki Endo
07a34f8347 Release 2.38.4 2024-06-12 02:16:44 +09:00
Taiki Endo
e626313db4 Workaround Cygwin bash's buggy behavior 2024-06-12 02:15:37 +09:00
Taiki Endo
01c63d291f Improve diagnostics for non-default bash on Windows 2024-06-12 00:58:48 +09:00
13 changed files with 286 additions and 65 deletions

View File

@@ -2,8 +2,10 @@ almalinux
archlinux
bindgen
binstall
choco
coreutils
cyclonedx
cygdrive
deepsource
distro
doas
@@ -23,6 +25,7 @@ pwsh
quickinstall
rclone
rdme
requirechecksums
sccache
syft
udeps

View File

@@ -53,6 +53,11 @@ jobs:
- os: macos-14
- os: windows-2019
- os: windows-2022
# https://github.com/taiki-e/install-action/pull/518#issuecomment-2160736760
- os: windows-2022
bash: msys64
- os: windows-2022
bash: cygwin
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
@@ -62,6 +67,18 @@ jobs:
- name: Generate tool list
id: tool-list
run: tools/ci/tool-list.sh "${{ matrix.tool }}" >>"${GITHUB_OUTPUT}"
- run: |
set -eEuxo pipefail
echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
echo "C:\msys64\usr\bin" >> $GITHUB_PATH
if: matrix.bash == 'msys64'
- run: |
set -eEuxo pipefail
choco install --no-progress --requirechecksums cygwin
echo "C:\tools\cygwin\bin" >> $GITHUB_PATH
echo "C:\tools\cygwin\usr\bin" >> $GITHUB_PATH
if: matrix.bash == 'cygwin'
- run: env
- uses: ./
with:
tool: ${{ steps.tool-list.outputs.tool }}
@@ -92,43 +109,7 @@ jobs:
if [[ "$(cargo binstall -V)" != "$(jq -r '.latest.version' manifests/cargo-binstall.json)" ]]; then
exit 1
fi
# https://github.com/taiki-e/install-action/pull/518#issuecomment-2160736760
test-msys64:
strategy:
fail-fast: false
matrix:
include:
# - os: windows-2019
- os: windows-2022
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- uses: taiki-e/checkout-action@v1
- run: |
echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
echo "C:\msys64\usr\bin" >> $GITHUB_PATH
# cross attempts to install rust-src when Cargo.toml is available even if `cross --version`
- run: rm Cargo.toml
- name: Generate tool list
id: tool-list
run: tools/ci/tool-list.sh >>"${GITHUB_OUTPUT}"
- uses: ./
with:
tool: ${{ steps.tool-list.outputs.tool }}
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
- name: Test bash
run: just --version && shfmt --version && protoc --version
shell: bash
- name: Test pwsh
run: just --version; shfmt --version; protoc --version
shell: pwsh
- name: Test powershell
run: just --version; shfmt --version; protoc --version
shell: powershell
- name: Test cmd
run: just --version & shfmt --version & protoc --version
shell: cmd
if: matrix.bash != 'cygwin'
test-container:
strategy:

View File

@@ -10,9 +10,52 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.39.2] - 2024-06-18
- Update `dprint@latest` to 0.46.3.
- Update `cargo-semver-checks@latest` to 0.32.0.
- Update `cargo-dinghy@latest` to 0.7.2.
## [2.39.1] - 2024-06-15
- Update `cargo-binstall@latest` to 1.7.1.
## [2.39.0] - 2024-06-15
- Update `cargo-binstall@latest` to 1.7.0.
## [2.38.7] - 2024-06-15
- Update `syft@latest` to 1.7.0.
- Update `just@latest` to 1.29.1.
- Update `rclone@latest` to 1.67.0.
## [2.38.6] - 2024-06-14
- Update `just@latest` to 1.29.0.
## [2.38.5] - 2024-06-13
- Update `typos@latest` to 1.22.7.
- Update `espup@latest` to 0.12.0.
## [2.38.4] - 2024-06-11
- Workaround Cygwin bash's buggy behavior. ([#534](https://github.com/taiki-e/install-action/pull/534))
This fixes an installation issue when default bash was overridden like the following:
```sh
echo "C:\tools\cygwin\bin" >> $GITHUB_PATH
```
## [2.38.3] - 2024-06-11
- Workaround msys64 bash's buggy behavior. ([#533](https://github.com/taiki-e/install-action/pull/533))
- Workaround MSYS64 bash's buggy behavior. ([#533](https://github.com/taiki-e/install-action/pull/533))
This fixes an installation issue when default bash was overridden like the following:
```sh
@@ -2309,7 +2352,14 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.38.3...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.39.2...HEAD
[2.39.2]: https://github.com/taiki-e/install-action/compare/v2.39.1...v2.39.2
[2.39.1]: https://github.com/taiki-e/install-action/compare/v2.39.0...v2.39.1
[2.39.0]: https://github.com/taiki-e/install-action/compare/v2.38.7...v2.39.0
[2.38.7]: https://github.com/taiki-e/install-action/compare/v2.38.6...v2.38.7
[2.38.6]: https://github.com/taiki-e/install-action/compare/v2.38.5...v2.38.6
[2.38.5]: https://github.com/taiki-e/install-action/compare/v2.38.4...v2.38.5
[2.38.4]: https://github.com/taiki-e/install-action/compare/v2.38.3...v2.38.4
[2.38.3]: https://github.com/taiki-e/install-action/compare/v2.38.2...v2.38.3
[2.38.2]: https://github.com/taiki-e/install-action/compare/v2.38.1...v2.38.2
[2.38.1]: https://github.com/taiki-e/install-action/compare/v2.38.0...v2.38.1

15
main.sh
View File

@@ -400,7 +400,7 @@ init_install_action_bin_dir() {
}
canonicalize_windows_path() {
case "${host_os}" in
windows) sed <<<"$1" 's/^\/c\//C:\\/; s/\//\\/g' ;;
windows) sed <<<"$1" 's/^\/cygdrive\//\//; s/^\/c\//C:\\/; s/\//\\/g' ;;
*) echo "$1" ;;
esac
}
@@ -517,8 +517,17 @@ info "host platform: ${host_arch}_${host_os}"
home="${HOME}"
if [[ "${host_os}" == "windows" ]]; then
# https://github.com/taiki-e/install-action/pull/518#issuecomment-2160736760
home="${home/\/home\//\/c\/Users\/}"
if [[ "${home}" == "/home/"* ]]; then
if [[ -d "${home/\/home\//\/c\/Users\/}" ]]; then
# MSYS2 https://github.com/taiki-e/install-action/pull/518#issuecomment-2160736760
home="${home/\/home\//\/c\/Users\/}"
elif [[ -d "${home/\/home\//\/cygdrive\/c\/Users\/}" ]]; then
# Cygwin https://github.com/taiki-e/install-action/issues/224#issuecomment-1720196288
home="${home/\/home\//\/cygdrive\/c\/Users\/}"
else
warn "\$HOME starting /home/ (${home}) on Windows bash is usually fake path, this may cause installation issue"
fi
fi
fi
install_action_dir="${home}/.install-action"
tmp_dir="${install_action_dir}/tmp"

View File

@@ -22,26 +22,26 @@
},
"license_markdown": "[GPL-3.0](https://github.com/cargo-bins/cargo-binstall/blob/HEAD/crates/bin/LICENSE)",
"latest": {
"version": "1.6.9"
"version": "1.7.1"
},
"1.6.9": {
"1.7.1": {
"x86_64_linux_musl": {
"checksum": "604d0cd902ee7385eeb9147b512bdbaa0ef4eb19a92d961df24d611f232fd3ff"
"checksum": "3a2f849becb60f070e416cc30d48f366d040c8db38dd7dda714f26cec15f4e2a"
},
"x86_64_macos": {
"checksum": "7ad36970202044d68033a79ebf62836796eb69e5c478dca1d9cbab8f55e719f3"
"checksum": "e68cd4c7688ee0378f63c2718c3ff982da02f161f1b9d20d7ecefa26fc463abd"
},
"x86_64_windows": {
"checksum": "99f9d048ad0f9a8b3e3dda7de3ffa34f1b05a1cb34392bde9866c063473c89e0"
"checksum": "a6abfc2279632c85db91fb49cd11fd3e1cf8bd4bd4e6f64abc6cc22bcef55d4c"
},
"aarch64_linux_musl": {
"checksum": "08f25befe50164b2d622b826da811dec47a0ac5ca3215837316281f4a8290806"
"checksum": "93fbed7fb5ec054fb134a8b31a3d0c6e86dd856b85dce5f63dd4438153a20779"
},
"aarch64_macos": {
"checksum": "ff603214e78a62d56ba9c8f2287de400cccd377aa38d75daba3dd827a4c3d8f9"
"checksum": "76a4f22e19111d9a6393fa1c60131951646067bb37093d7103cecad8d4ac7d14"
},
"aarch64_windows": {
"checksum": "0b28fb0e4d7ee54995d845e89494f03021f573caa1d22ab4d24816715be120d9"
"checksum": "46e3050690269ac6b53b8fed4b8828d2acd9ae72da72270b4d1ccb1824b394b4"
}
}
}

View File

@@ -12,10 +12,18 @@
},
"license_markdown": "[MIT](https://github.com/sonos/dinghy/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/sonos/dinghy/blob/main/LICENSE-APACHE)",
"latest": {
"version": "0.7.1"
"version": "0.7.2"
},
"0.7": {
"version": "0.7.1"
"version": "0.7.2"
},
"0.7.2": {
"x86_64_linux_musl": {
"checksum": "c4c4a912b358729f88ee26b10b8de36bab06d42742539bcc3e98d0533c5f4cec"
},
"x86_64_macos": {
"checksum": "0a4389eee9619a8afdde156eaefbae6652532549c348e1d37a1146ff3096a889"
}
},
"0.7.1": {
"x86_64_linux_musl": {

View File

@@ -16,7 +16,24 @@
},
"license_markdown": "[Apache-2.0](https://github.com/obi1kenobi/cargo-semver-checks/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/obi1kenobi/cargo-semver-checks/blob/main/LICENSE-MIT)",
"latest": {
"version": "0.31.0"
"version": "0.32.0"
},
"0.32": {
"version": "0.32.0"
},
"0.32.0": {
"x86_64_linux_musl": {
"checksum": "c8202b26e84b06e9d6a40e8b28d04d72fed10a178403f323644c0af6b5c37c24"
},
"x86_64_macos": {
"checksum": "0540e6ef4f3f8f42e2e4db0e9efb49d4e4c32bc7becb16379e85c38aac500105"
},
"x86_64_windows": {
"checksum": "cecbbab97c8c0b47070038ba4f585fce79dd397b47e0bca0247bfa2967cc8017"
},
"aarch64_macos": {
"checksum": "59a9bbf1ae898725085854d4f618a3c958f6fa67a0573f393a42c2ee3990497e"
}
},
"0.31": {
"version": "0.31.0"

21
manifests/dprint.json generated
View File

@@ -25,10 +25,27 @@
},
"license_markdown": "[MIT](https://github.com/dprint/dprint/blob/main/LICENSE)",
"latest": {
"version": "0.46.2"
"version": "0.46.3"
},
"0.46": {
"version": "0.46.2"
"version": "0.46.3"
},
"0.46.3": {
"x86_64_linux_musl": {
"checksum": "b3968388c27fcc0853d54e57f8a00c1bd6134395d9657ded3088f365304bf90f"
},
"x86_64_macos": {
"checksum": "a9f4c71f1e32e99152e8278ccbd27c059246dfa1c3d8b3cb1fa0837bdd269b3e"
},
"x86_64_windows": {
"checksum": "4e024b2e626b2eabf923a62703cda3beb90ecacfaf2d737454ed6025779e3811"
},
"aarch64_linux_musl": {
"checksum": "868a478307416f845f11dff9d9d6e94547dc826339fb6d5740f5b7795d9135af"
},
"aarch64_macos": {
"checksum": "f051c3b3bb5e8f936c1b5ad6e3659bf408a8e787b6dca48e6f95baf261f6e84d"
}
},
"0.46.2": {
"x86_64_linux_musl": {

22
manifests/espup.json generated
View File

@@ -19,7 +19,27 @@
},
"license_markdown": "[MIT](https://github.com/esp-rs/espup/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/esp-rs/espup/blob/main/LICENSE-APACHE)",
"latest": {
"version": "0.11.0"
"version": "0.12.0"
},
"0.12": {
"version": "0.12.0"
},
"0.12.0": {
"x86_64_linux_gnu": {
"checksum": "2c89370a2cf2eaf2d300439d5f15fa89ae71d635b027965b1325effc8d84b383"
},
"x86_64_macos": {
"checksum": "00867da14720005dc0ef174e93164ca2934126840be7ddb7a9eaa2c17e940555"
},
"x86_64_windows": {
"checksum": "a7d128180d30e1d351c63a02436de8a75a8b90479fb49ce23b4eaadf03e637d1"
},
"aarch64_linux_gnu": {
"checksum": "b7259c225ad713f94b73e4f86f7daf37e7c02ba959b00a3f2f8327fbab639247"
},
"aarch64_macos": {
"checksum": "a91717477c816bc10b75a250a3d415ee1eea329dcc9a8bddb70d73bc4ebc521e"
}
},
"0.11": {
"version": "0.11.0"

41
manifests/just.json generated
View File

@@ -19,10 +19,47 @@
},
"license_markdown": "[CC0-1.0](https://github.com/casey/just/blob/master/LICENSE)",
"latest": {
"version": "1.28.0"
"version": "1.29.1"
},
"1": {
"version": "1.28.0"
"version": "1.29.1"
},
"1.29": {
"version": "1.29.1"
},
"1.29.1": {
"x86_64_linux_musl": {
"checksum": "42c47bd34b511c43a4d51a13c425c0e0f51e59e20b9f390fbd8838b85ee8db1b"
},
"x86_64_macos": {
"checksum": "5415dfcf2640b10823c2157c3f5a634d93f0a4a7005f4955bdcc3f009b406727"
},
"x86_64_windows": {
"checksum": "194c49878a502d9b756367e8164e1abf00955cf45af0f1e699ea9c9a45a92ba8"
},
"aarch64_linux_musl": {
"checksum": "53f43c93497a1ae4045f09fa1b528dd800ce5046ad945f4d3cd92a4fc99da353"
},
"aarch64_macos": {
"checksum": "075ddcc42de6e90dc46a942c8b1914142563dff49f6e8dd2785da3c263e6663e"
}
},
"1.29.0": {
"x86_64_linux_musl": {
"checksum": "34a059a0cde8a801ae518a7ca7271fc65709110eebbe23ba768760bf0a0eb66a"
},
"x86_64_macos": {
"checksum": "64991d2b9476d89c936404d5149ceedd8fb19c66b0390aa1e959548d376e0acc"
},
"x86_64_windows": {
"checksum": "5ad04990eb4299ad7e802fe86f85a5c116cb9af13deae87c08ed7dbf49c930d6"
},
"aarch64_linux_musl": {
"checksum": "2072dc38e37e1bd6331d7f38a8a607f81b899e3f6f2685e858482f9650f762d3"
},
"aarch64_macos": {
"checksum": "1c7146005f0e1e8d60c8de38b2c75d86a1b5c199705f645d34b5396fac897599"
}
},
"1.28": {
"version": "1.28.0"

27
manifests/rclone.json generated
View File

@@ -28,10 +28,33 @@
},
"license_markdown": "[MIT](https://github.com/rclone/rclone/blob/master/COPYING)",
"latest": {
"version": "1.66.0"
"version": "1.67.0"
},
"1": {
"version": "1.66.0"
"version": "1.67.0"
},
"1.67": {
"version": "1.67.0"
},
"1.67.0": {
"x86_64_linux_musl": {
"checksum": "07c23d21a94d70113d949253478e13261c54d14d72023bb14d96a8da5f3e7722"
},
"x86_64_macos": {
"checksum": "1a1a3b080393b721ba5f38597305be2dbac3b654b43dfac3ebe4630b4e6406c3"
},
"x86_64_windows": {
"checksum": "117b99441024607d6043e274c7fcbed64d07ad87347d17dd0a717bdc1c59716b"
},
"aarch64_linux_musl": {
"checksum": "2b44981a1a7d1f432c53c0f2f0b6bcdd410f6491c47dc55428fdac0b85c763f1"
},
"aarch64_macos": {
"checksum": "4dc6142aea78bb86f1236fe38e570b715990503c09733418c0cd2300e45651e4"
},
"aarch64_windows": {
"checksum": "54f263712d02bf2345eb5a3444aa4f07b990f5b4c6d02f1de892d1ff8028b50c"
}
},
"1.66": {
"version": "1.66.0"

24
manifests/syft.json generated
View File

@@ -24,10 +24,30 @@
},
"license_markdown": "[Apache-2.0](https://github.com/anchore/syft/blob/main/LICENSE)",
"latest": {
"version": "1.6.0"
"version": "1.7.0"
},
"1": {
"version": "1.6.0"
"version": "1.7.0"
},
"1.7": {
"version": "1.7.0"
},
"1.7.0": {
"x86_64_linux_musl": {
"checksum": "2d36ba261e94f93bbb9538a975a63a494cc9b4440dcd2ee43e68b4a70a506916"
},
"x86_64_macos": {
"checksum": "e7a9ed735c2436f4a00bec80ec431788e008021e2af1ddce7747b3ae9a10b012"
},
"x86_64_windows": {
"checksum": "3c7908b5838a2a24ea4fa26425ee2690e1ada5e9763f7493a99d8efb1d9a08a8"
},
"aarch64_linux_musl": {
"checksum": "cf43f1702ee063071be929f5561b093f58aa08d4dc5e19016e5d25e1453d81fe"
},
"aarch64_macos": {
"checksum": "a076de1eb324b96a00e6b8546cbb77eb2ca34f0a38a008e4c10708778df4741c"
}
},
"1.6": {
"version": "1.6.0"

42
manifests/typos.json generated
View File

@@ -16,13 +16,49 @@
},
"license_markdown": "[MIT](https://github.com/crate-ci/typos/blob/master/LICENSE-MIT) OR [Apache-2.0](https://github.com/crate-ci/typos/blob/master/LICENSE-APACHE)",
"latest": {
"version": "1.22.4"
"version": "1.22.7"
},
"1": {
"version": "1.22.4"
"version": "1.22.7"
},
"1.22": {
"version": "1.22.4"
"version": "1.22.7"
},
"1.22.7": {
"x86_64_linux_musl": {
"checksum": "a706a74f970f660e8aa24c6b3a46b8e213974d4317dc163b03d5e05c20e561a8"
},
"x86_64_macos": {
"checksum": "28f40f958f37cab2b24308142f404dba22d0e18757b511e0a16100fb4fd41547"
},
"x86_64_windows": {
"checksum": "912951a701c2c55dac499f908775126735aa2b59b41c488da18093e2b2d3aa69"
},
"aarch64_macos": {
"checksum": "c5857dec27e38ed996e76b2d8c4545006905ea750ab015ab72bd66cadb00b376"
}
},
"1.22.6": {
"x86_64_macos": {
"checksum": "ba16199129ddd81e1c720d39fb35c41369a9c78c15b2e39126e8b02e875e11f7"
},
"x86_64_windows": {
"checksum": "aae44abc76ba77556cfc7d576ced87a716f420b09fa357cebbdf0a9a040a2492"
},
"aarch64_macos": {
"checksum": "31a335e695fc9749ddd95bc9154616ccb07c94df77bcc9156acc41d258219f64"
}
},
"1.22.5": {
"x86_64_macos": {
"checksum": "1023d1323b98103d45ffd293515a2515c14493c57c5035c76106ec344aab6a4b"
},
"x86_64_windows": {
"checksum": "b727570571472fbab9029d4bcc09a1cbcafece02907fa7a25a46d6feb426bb5a"
},
"aarch64_macos": {
"checksum": "96024e189bce99b25bbc2a4165a76832637c231f1163d57581a080bbb5bfbd22"
}
},
"1.22.4": {
"x86_64_linux_musl": {