mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-26 09:00:48 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9bef7e9c3d | ||
|
|
3981b01dd3 | ||
|
|
5b02de393a | ||
|
|
5fe2a9c74d | ||
|
|
47e2e5cbd7 | ||
|
|
05718eba42 | ||
|
|
942f3ad679 |
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -63,24 +63,30 @@ jobs:
|
||||
bash: msys64
|
||||
- os: windows-2022
|
||||
bash: cygwin
|
||||
- os: windows-2022
|
||||
tool: major.minor.patch
|
||||
- os: windows-2022
|
||||
tool: major.minor
|
||||
- os: windows-2022
|
||||
tool: major
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- run: |
|
||||
printf 'C:\msys64\mingw32\bin\n' >>"${GITHUB_PATH}"
|
||||
printf 'C:\msys64\usr\bin\n' >>"${GITHUB_PATH}"
|
||||
printf '%s\n' 'C:\msys64\mingw32\bin' >>"${GITHUB_PATH}"
|
||||
printf '%s\n' 'C:\msys64\usr\bin' >>"${GITHUB_PATH}"
|
||||
if: matrix.bash == 'msys64'
|
||||
- run: |
|
||||
choco install --no-progress --requirechecksums cygwin
|
||||
printf 'C:\tools\cygwin\bin\n' >>"${GITHUB_PATH}"
|
||||
printf 'C:\tools\cygwin\usr\bin\n' >>"${GITHUB_PATH}"
|
||||
printf '%s\n' 'C:\tools\cygwin\bin' >>"${GITHUB_PATH}"
|
||||
printf '%s\n' 'C:\tools\cygwin\usr\bin' >>"${GITHUB_PATH}"
|
||||
if: matrix.bash == 'cygwin'
|
||||
- uses: taiki-e/checkout-action@v1
|
||||
# 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 "${{ matrix.tool }}" >>"${GITHUB_OUTPUT}"
|
||||
run: tools/ci/tool-list.sh "${{ matrix.tool }}" "${{ matrix.os }}" "${{ matrix.bash }}" >>"${GITHUB_OUTPUT}"
|
||||
- run: env
|
||||
- uses: ./
|
||||
with:
|
||||
|
||||
14
CHANGELOG.md
14
CHANGELOG.md
@@ -10,6 +10,16 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.44.13] - 2024-09-28
|
||||
|
||||
- Update `sccache@latest` to 0.8.2.
|
||||
|
||||
- Update `release-plz@latest` to 0.3.92.
|
||||
|
||||
## [2.44.12] - 2024-09-28
|
||||
|
||||
- Fix compatibility issue with Cygwin `sh`. This fixes a regression introduced in 2.42.0.
|
||||
|
||||
## [2.44.11] - 2024-09-28
|
||||
|
||||
- Update `git-cliff@latest` to 2.6.1.
|
||||
@@ -2788,7 +2798,9 @@ Note: This release is considered a breaking change because installing on version
|
||||
|
||||
Initial release
|
||||
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.44.11...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.44.13...HEAD
|
||||
[2.44.13]: https://github.com/taiki-e/install-action/compare/v2.44.12...v2.44.13
|
||||
[2.44.12]: https://github.com/taiki-e/install-action/compare/v2.44.11...v2.44.12
|
||||
[2.44.11]: https://github.com/taiki-e/install-action/compare/v2.44.10...v2.44.11
|
||||
[2.44.10]: https://github.com/taiki-e/install-action/compare/v2.44.9...v2.44.10
|
||||
[2.44.9]: https://github.com/taiki-e/install-action/compare/v2.44.8...v2.44.9
|
||||
|
||||
@@ -46,3 +46,11 @@ runs:
|
||||
INPUT_TOOL: ${{ inputs.tool }}
|
||||
INPUT_CHECKSUM: ${{ inputs.checksum }}
|
||||
INPUT_FALLBACK: ${{ inputs.fallback }}
|
||||
if: runner.os != 'Windows'
|
||||
- run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh"
|
||||
shell: bash
|
||||
env:
|
||||
INPUT_TOOL: ${{ inputs.tool }}
|
||||
INPUT_CHECKSUM: ${{ inputs.checksum }}
|
||||
INPUT_FALLBACK: ${{ inputs.fallback }}
|
||||
if: runner.os == 'Windows'
|
||||
|
||||
30
manifests/release-plz.json
generated
30
manifests/release-plz.json
generated
@@ -22,10 +22,36 @@
|
||||
},
|
||||
"license_markdown": "[MIT](https://github.com/MarcoIeni/release-plz/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/MarcoIeni/release-plz/blob/main/LICENSE-APACHE)",
|
||||
"latest": {
|
||||
"version": "0.3.91"
|
||||
"version": "0.3.92"
|
||||
},
|
||||
"0.3": {
|
||||
"version": "0.3.91"
|
||||
"version": "0.3.92"
|
||||
},
|
||||
"0.3.92": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DCDF9AE116CF51",
|
||||
"checksum": "89d6c0558b94b0d665ddb824fe90d7313a09d06e483d5faa8111ff1fcd7ed63a"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DCDF9B47E84F0F",
|
||||
"checksum": "573c5179bcd2fcbdb89e64afd1e71d4d99821d3854bdd80772b5592185e6f9a7"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DCDF9BA29036B6",
|
||||
"checksum": "af5cc4947c4373648fa377e57ef0646d227e4db98910205a94df5eed00d52436"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DCDF9AEC6615AC",
|
||||
"checksum": "7925be36c1e005edaa2fa73dc476539f934a330559a283aa7d29becdeff3f2cd"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DCDF9B5A997446",
|
||||
"checksum": "4a394a4cffcd6d210405971c7350da541a765bc164ae42983ca67efccfcbdbff"
|
||||
},
|
||||
"aarch64_windows": {
|
||||
"etag": "0x8DCDF9BEAFF232D",
|
||||
"checksum": "aa844fc516399be6157dc4c3bc77dfe4c1aa646774513269aa74601c67ff09b0"
|
||||
}
|
||||
},
|
||||
"0.3.91": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
26
manifests/sccache.json
generated
26
manifests/sccache.json
generated
@@ -24,10 +24,32 @@
|
||||
},
|
||||
"license_markdown": "[Apache-2.0](https://github.com/mozilla/sccache/blob/main/LICENSE)",
|
||||
"latest": {
|
||||
"version": "0.8.1"
|
||||
"version": "0.8.2"
|
||||
},
|
||||
"0.8": {
|
||||
"version": "0.8.1"
|
||||
"version": "0.8.2"
|
||||
},
|
||||
"0.8.2": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DCDF9C94069C6F",
|
||||
"checksum": "ecda4ddc89a49f1ec6f35bdce5ecbf6f205b399a680d11119d4ce9f6d962104e"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DCDF9C9255A3FE",
|
||||
"checksum": "fcbe1b76356f7183cee0b5bc150c0583abc01a5c42e9b2be94e9d17ed7dca3a4"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DCDF9C932BD8D8",
|
||||
"checksum": "de5e9f66bb8a6bbdf0e28cb8a086a8d12699af796bf70bcd9dc40d80715bf9b8"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DCDF9C8FAD0AA4",
|
||||
"checksum": "d4b6c04edf7ed687a50be0d3d899dca01bc3037dcf99f16bc46a7b9a76f78db9"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DCDF9C8E16337F",
|
||||
"checksum": "32604da614ce679623a8de0d38eab91b87431d59f3344c5523c82e1b6e85ffc4"
|
||||
}
|
||||
},
|
||||
"0.8.1": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
@@ -40,6 +40,9 @@ glibc_pre_2_17_incompat=(
|
||||
musl_incompat=(
|
||||
"${glibc_pre_2_17_incompat[@]}"
|
||||
)
|
||||
win2019_gnu_incompat=(
|
||||
cargo-spellcheck
|
||||
)
|
||||
|
||||
incompat_tools=()
|
||||
case "${1:-}" in
|
||||
@@ -51,9 +54,11 @@ case "${1:-}" in
|
||||
;;
|
||||
*)
|
||||
echo "tool=$1"
|
||||
exit 0
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
runner="${2:-}"
|
||||
bash="${3:-}"
|
||||
case "$(uname -s)" in
|
||||
Linux)
|
||||
host_os=linux
|
||||
@@ -92,7 +97,16 @@ case "$(uname -s)" in
|
||||
fi
|
||||
;;
|
||||
Darwin) host_os=macos ;;
|
||||
MINGW* | MSYS* | CYGWIN* | Windows_NT) host_os=windows ;;
|
||||
MINGW* | MSYS* | CYGWIN* | Windows_NT)
|
||||
host_os=windows
|
||||
case "${bash}" in
|
||||
msys64 | cygwin)
|
||||
if [[ "${runner}" == "windows-2019" ]]; then
|
||||
incompat_tools+=("${win2019_gnu_incompat[@]}")
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*) bail "unrecognized OS type '$(uname -s)'" ;;
|
||||
esac
|
||||
|
||||
@@ -104,20 +118,19 @@ for manifest in tools/codegen/base/*.json; do
|
||||
continue
|
||||
fi
|
||||
case "${host_os}" in
|
||||
linux*)
|
||||
for incompat in ${incompat_tools[@]+"${incompat_tools[@]}"}; do
|
||||
if [[ "${incompat}" == "${tool_name}" ]]; then
|
||||
tool_name=''
|
||||
break
|
||||
fi
|
||||
done
|
||||
;;
|
||||
linux*) ;;
|
||||
*)
|
||||
if [[ "$(jq -r ".platform.x86_64_${host_os}" "${manifest}")" == "null" ]]; then
|
||||
continue
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
for incompat in ${incompat_tools[@]+"${incompat_tools[@]}"}; do
|
||||
if [[ "${incompat}" == "${tool_name}" ]]; then
|
||||
tool_name=''
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [[ -n "${tool_name}" ]]; then
|
||||
if [[ "${version}" != "latest" ]]; then
|
||||
latest_version=$(jq -r ".latest.version" "manifests/${tool_name}.json")
|
||||
@@ -154,9 +167,9 @@ esac
|
||||
# cargo-watch/watchexec-cli is supported by cargo-binstall (through quickinstall)
|
||||
case "${version}" in
|
||||
latest) tools+=(cargo-watch watchexec-cli) ;;
|
||||
major.minor.patch) tools+=(cargo-watch@8.1.1 watchexec-cli@1.20.5) ;;
|
||||
major.minor) tools+=(cargo-watch@8.1 watchexec-cli@1.20) ;;
|
||||
major) tools+=(cargo-watch@8 watchexec-cli@1) ;;
|
||||
major.minor.patch) tools+=(cargo-watch@8.5.2 watchexec-cli@2.1.2) ;;
|
||||
major.minor) tools+=(cargo-watch@8.5 watchexec-cli@2.1) ;;
|
||||
major) tools+=(cargo-watch@8 watchexec-cli@2) ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user