mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-29 18:40:23 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47e2e5cbd7 | ||
|
|
05718eba42 | ||
|
|
942f3ad679 | ||
|
|
4a3cc43080 | ||
|
|
c8b5e0ff44 | ||
|
|
596eade599 | ||
|
|
05260f07f3 | ||
|
|
cbe8580ec9 | ||
|
|
fff8de5df4 |
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -52,6 +52,7 @@ jobs:
|
||||
tool: major
|
||||
- os: macos-13
|
||||
- os: macos-14
|
||||
- os: macos-15
|
||||
- os: windows-2019
|
||||
- os: windows-2019
|
||||
bash: msys64
|
||||
@@ -62,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:
|
||||
@@ -201,8 +208,7 @@ jobs:
|
||||
pull-requests: write # for gh pr review --approve
|
||||
steps:
|
||||
- uses: taiki-e/checkout-action@v1
|
||||
- name: Install Rust
|
||||
run: rustup update stable --no-self-update
|
||||
- uses: taiki-e/github-actions/install-rust@stable
|
||||
- name: Generate Cargo.lock
|
||||
run: cargo update
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
17
CHANGELOG.md
17
CHANGELOG.md
@@ -10,6 +10,18 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [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.
|
||||
|
||||
## [2.44.10] - 2024-09-26
|
||||
|
||||
- Update `cargo-machete@latest` to 0.7.0.
|
||||
|
||||
## [2.44.9] - 2024-09-25
|
||||
|
||||
- Update `wasmtime@latest` to 25.0.1.
|
||||
@@ -2780,7 +2792,10 @@ 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.9...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.44.12...HEAD
|
||||
[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
|
||||
[2.44.8]: https://github.com/taiki-e/install-action/compare/v2.44.7...v2.44.8
|
||||
[2.44.7]: https://github.com/taiki-e/install-action/compare/v2.44.6...v2.44.7
|
||||
|
||||
@@ -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'
|
||||
|
||||
31
manifests/cargo-machete.json
generated
31
manifests/cargo-machete.json
generated
@@ -3,7 +3,36 @@
|
||||
"template": null,
|
||||
"license_markdown": "[MIT](https://github.com/bnjbvr/cargo-machete/blob/main/LICENSE.md)",
|
||||
"latest": {
|
||||
"version": "0.6.2"
|
||||
"version": "0.7.0"
|
||||
},
|
||||
"0.7": {
|
||||
"version": "0.7.0"
|
||||
},
|
||||
"0.7.0": {
|
||||
"x86_64_linux_musl": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.7.0/cargo-machete-v0.7.0-x86_64-unknown-linux-musl.tar.gz",
|
||||
"etag": "0x8DCDE14D890E1AF",
|
||||
"checksum": "473f663c7b47166fc4eb87f82716ba709b22cc62a52763585c529974b5aeb6e5",
|
||||
"bin": "cargo-machete-v0.7.0-x86_64-unknown-linux-musl/cargo-machete"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.7.0/cargo-machete-v0.7.0-x86_64-apple-darwin.tar.gz",
|
||||
"etag": "0x8DCDE14CF16B32E",
|
||||
"checksum": "aa95f97a0bd2b36928b2b4495e7b9ddd197bab4d6510903e926c6ad7288272fd",
|
||||
"bin": "cargo-machete-v0.7.0-x86_64-apple-darwin/cargo-machete"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.7.0/cargo-machete-v0.7.0-x86_64-pc-windows-msvc.tar.gz",
|
||||
"etag": "0x8DCDE152AA824B0",
|
||||
"checksum": "c50e388fbbaf484c140f3644fbc4c6f026dceebe49ffe8929477dd4ac149818c",
|
||||
"bin": "cargo-machete-v0.7.0-x86_64-pc-windows-msvc/cargo-machete.exe"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.7.0/cargo-machete-v0.7.0-aarch64-apple-darwin.tar.gz",
|
||||
"etag": "0x8DCDE14D5BC10C6",
|
||||
"checksum": "1510e68aae1be38f995c80a8cc16eeadeb4ab304991c0cf0f96773b7b1d41ba7",
|
||||
"bin": "cargo-machete-v0.7.0-aarch64-apple-darwin/cargo-machete"
|
||||
}
|
||||
},
|
||||
"0.6": {
|
||||
"version": "0.6.2"
|
||||
|
||||
32
manifests/git-cliff.json
generated
32
manifests/git-cliff.json
generated
@@ -28,13 +28,39 @@
|
||||
},
|
||||
"license_markdown": "[MIT](https://github.com/orhun/git-cliff/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/orhun/git-cliff/blob/main/LICENSE-APACHE)",
|
||||
"latest": {
|
||||
"version": "2.6.0"
|
||||
"version": "2.6.1"
|
||||
},
|
||||
"2": {
|
||||
"version": "2.6.0"
|
||||
"version": "2.6.1"
|
||||
},
|
||||
"2.6": {
|
||||
"version": "2.6.0"
|
||||
"version": "2.6.1"
|
||||
},
|
||||
"2.6.1": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DCDF0C286D5E7C",
|
||||
"checksum": "aa79de881c46ad783de43e20e6a5711cd6f7ef7e9b9d01648845d8c577817d78"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DCDF0BF132B0C7",
|
||||
"checksum": "1c819d6beaafe596b1b825519488362c56d7cd330a61d27b68dcf48b2cd13a08"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DCDF0D0C6CFB82",
|
||||
"checksum": "519f7cd9e5f43f1c11f323cddcb1e77b5ca7317a6ff72297be2f41975d45febe"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DCDF0C37EC48D9",
|
||||
"checksum": "2e350b6fc7d8e46db466efa1fd35a41103041f9ea45eee9dd7ca8d419aac2155"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DCDF0C177CD533",
|
||||
"checksum": "d1501f61d7037cb7beaa315e6c413c3b92c19d835f59e706a070c344476a3d72"
|
||||
},
|
||||
"aarch64_windows": {
|
||||
"etag": "0x8DCDF0CF49F0785",
|
||||
"checksum": "ad2b600909927b0b5e6e0b593f54e69c5370b3fa969f7fda761638ff6f0d49f5"
|
||||
}
|
||||
},
|
||||
"2.6.0": {
|
||||
"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")
|
||||
|
||||
Reference in New Issue
Block a user