mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-27 01:20:28 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d892dd50e | ||
|
|
95d91b64c9 | ||
|
|
dd522f255c | ||
|
|
10c4c369c5 | ||
|
|
e84c329a30 | ||
|
|
49249f98b2 | ||
|
|
e6550525d2 | ||
|
|
f2b65a3e67 | ||
|
|
96d4cbffb8 | ||
|
|
cbe4754a6b |
1
.github/.cspell/project-dictionary.txt
vendored
1
.github/.cspell/project-dictionary.txt
vendored
@@ -22,7 +22,6 @@ nextest
|
||||
pluginconf
|
||||
protoc
|
||||
pwsh
|
||||
QQSTRING
|
||||
quickinstall
|
||||
rclone
|
||||
rdme
|
||||
|
||||
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
@@ -7,6 +7,10 @@ updates:
|
||||
commit-message:
|
||||
prefix: ''
|
||||
labels: []
|
||||
groups:
|
||||
cargo:
|
||||
patterns:
|
||||
- '*'
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
@@ -14,3 +18,7 @@ updates:
|
||||
commit-message:
|
||||
prefix: ''
|
||||
labels: []
|
||||
groups:
|
||||
github-actions:
|
||||
patterns:
|
||||
- '*'
|
||||
|
||||
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@@ -147,18 +147,7 @@ jobs:
|
||||
timeout-minutes: 60
|
||||
container: ${{ matrix.container }}
|
||||
steps:
|
||||
- name: Install requirements (ubuntu:14.04)
|
||||
run: |
|
||||
set -CeEuxo pipefail
|
||||
# ubuntu 14.04's jq is 1.3
|
||||
# error: syntax error, unexpected QQSTRING_START, expecting $end
|
||||
# https://github.com/jqlang/jq/issues/273
|
||||
apt-get -o Acquire::Retries=10 -qq update
|
||||
apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends ca-certificates curl
|
||||
curl --proto '=https' --tlsv1.2 -fsSL --retry 10 -o /usr/local/bin/jq https://github.com/jqlang/jq/releases/download/jq-1.5/jq-linux64
|
||||
chmod +x /usr/local/bin/jq
|
||||
if: startsWith(matrix.container, 'ubuntu:14.04')
|
||||
- name: Install requirements (debian:9)
|
||||
- name: Install requirements (old debian)
|
||||
run: |
|
||||
set -CeEuxo pipefail
|
||||
# In Debian, the old repositories is removed from the main mirrors some time after EoL.
|
||||
@@ -182,12 +171,7 @@ jobs:
|
||||
./configure --prefix=/usr/local --with-ssl
|
||||
make
|
||||
make install
|
||||
# CentOS 6's jq is 1.3
|
||||
# error: syntax error, unexpected QQSTRING_START, expecting $end
|
||||
# https://github.com/jqlang/jq/issues/273
|
||||
curl --proto '=https' --tlsv1.2 -fsSL --retry 10 -o /usr/local/bin/jq https://github.com/jqlang/jq/releases/download/jq-1.5/jq-linux64
|
||||
chmod +x /usr/local/bin/jq
|
||||
# for checkout-action https://github.com/taiki-e/checkout-action/blob/87380fc33ed8e04e325b05d3576995b2253ab5ba/.github/workflows/ci.yml#L134-L142
|
||||
# for checkout-action https://github.com/taiki-e/checkout-action/blob/v1.3.0/.github/workflows/ci.yml#L135-L143
|
||||
yum install -y openssh-clients perl perl-Error perl-TermReadKey rsync
|
||||
rpm -i \
|
||||
https://vault.ius.io/el6/x86_64/packages/p/perl-Git18-1.8.5.5-4.ius.el6.noarch.rpm \
|
||||
@@ -214,8 +198,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
pull-requests: write # for gh pr review --approve
|
||||
steps:
|
||||
- uses: taiki-e/checkout-action@v1
|
||||
- name: Install Rust
|
||||
@@ -231,13 +215,12 @@ jobs:
|
||||
- id: diff
|
||||
run: tools/ci/manifest.sh
|
||||
if: github.repository_owner == 'taiki-e' && (github.event_name == 'schedule' || github.event_name == 'push' && github.ref == 'refs/heads/main')
|
||||
- name: Create PR
|
||||
id: create-pull-request
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
- id: create-pull-request
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
title: Update manifest
|
||||
body: |
|
||||
Auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request).
|
||||
Auto-generated by CI using [create-pull-request](https://github.com/peter-evans/create-pull-request).
|
||||
|
||||
This will be auto-merged when CI has passed because this is an auto-generated PR in a defined format and is usually considered no additional review is required.
|
||||
branch: update-manifest
|
||||
|
||||
19
CHANGELOG.md
19
CHANGELOG.md
@@ -10,6 +10,20 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.42.39] - 2024-09-03
|
||||
|
||||
- Update `cargo-llvm-cov@latest` to 0.6.12.
|
||||
|
||||
## [2.42.38] - 2024-09-03
|
||||
|
||||
- Update `typos@latest` to 1.24.3.
|
||||
|
||||
- Relax jq version requirement to 1.3 (no longer need to install the newer version of jq when using this action on Ubuntu 14.04/CentOS 6 containers/self-hosted runners).
|
||||
|
||||
## [2.42.37] - 2024-08-30
|
||||
|
||||
- Update `cargo-make@latest` to 0.37.16.
|
||||
|
||||
## [2.42.36] - 2024-08-29
|
||||
|
||||
- Update `just@latest` to 1.35.0.
|
||||
@@ -2662,7 +2676,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.42.36...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.42.39...HEAD
|
||||
[2.42.39]: https://github.com/taiki-e/install-action/compare/v2.42.38...v2.42.39
|
||||
[2.42.38]: https://github.com/taiki-e/install-action/compare/v2.42.37...v2.42.38
|
||||
[2.42.37]: https://github.com/taiki-e/install-action/compare/v2.42.36...v2.42.37
|
||||
[2.42.36]: https://github.com/taiki-e/install-action/compare/v2.42.35...v2.42.36
|
||||
[2.42.35]: https://github.com/taiki-e/install-action/compare/v2.42.34...v2.42.35
|
||||
[2.42.34]: https://github.com/taiki-e/install-action/compare/v2.42.33...v2.42.34
|
||||
|
||||
@@ -116,10 +116,10 @@ On Linux, if any required tools are missing, this action will attempt to install
|
||||
On other platforms, at least the following tools are required:
|
||||
|
||||
- bash 3.2+
|
||||
- jq 1.5+
|
||||
- jq 1.3+
|
||||
- curl 7.34+ (or RHEL7/CentOS7's patched curl 7.29)
|
||||
|
||||
Known environments affected by the above version requirements are CentOS 6 (EoL on 2020-11) using curl 7.19 and jq 1.3, and Ubuntu 14.04 (EoL on 2019-04) using jq 1.3 (see "Install requirements" in [our CI config](https://github.com/taiki-e/install-action/blob/HEAD/.github/workflows/ci.yml) for example of workaround).
|
||||
Known environments affected by the above version requirements are CentOS 6 (EoL on 2020-11) using curl 7.19, and Ubuntu 12.04 (EoL on 2017-04) using curl 7.22 (see "Install requirements" in [our CI config](https://github.com/taiki-e/install-action/blob/HEAD/.github/workflows/ci.yml) for example of workaround).
|
||||
|
||||
## Related Projects
|
||||
|
||||
|
||||
6
main.sh
6
main.sh
@@ -187,7 +187,7 @@ read_manifest() {
|
||||
local version="$2"
|
||||
local manifest
|
||||
rust_crate=$(call_jq -r ".rust_crate" "${manifest_dir}/${tool}.json")
|
||||
manifest=$(call_jq -r ".\"${version}\"" "${manifest_dir}/${tool}.json")
|
||||
manifest=$(call_jq -r ".[\"${version}\"]" "${manifest_dir}/${tool}.json")
|
||||
if [[ "${manifest}" == "null" ]]; then
|
||||
download_info="null"
|
||||
return 0
|
||||
@@ -196,7 +196,7 @@ read_manifest() {
|
||||
if [[ "${exact_version}" == "null" ]]; then
|
||||
exact_version="${version}"
|
||||
else
|
||||
manifest=$(call_jq -r ".\"${exact_version}\"" "${manifest_dir}/${tool}.json")
|
||||
manifest=$(call_jq -r ".[\"${exact_version}\"]" "${manifest_dir}/${tool}.json")
|
||||
if [[ "${rust_crate}" != "null" ]]; then
|
||||
# TODO: don't hardcode tool name and use 'immediate_yank_reflection' field in base manifest.
|
||||
case "${tool}" in
|
||||
@@ -213,7 +213,7 @@ read_manifest() {
|
||||
fi
|
||||
info "${tool}@${exact_version} is yanked; downgrade to ${previous_stable_version}"
|
||||
exact_version="${previous_stable_version}"
|
||||
manifest=$(jq -r ".\"${exact_version}\"" "${manifest_dir}/${tool}.json")
|
||||
manifest=$(jq -r ".[\"${exact_version}\"]" "${manifest_dir}/${tool}.json")
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
26
manifests/cargo-llvm-cov.json
generated
26
manifests/cargo-llvm-cov.json
generated
@@ -19,10 +19,32 @@
|
||||
},
|
||||
"license_markdown": "[Apache-2.0](https://github.com/taiki-e/cargo-llvm-cov/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-llvm-cov/blob/main/LICENSE-MIT)",
|
||||
"latest": {
|
||||
"version": "0.6.11"
|
||||
"version": "0.6.12"
|
||||
},
|
||||
"0.6": {
|
||||
"version": "0.6.11"
|
||||
"version": "0.6.12"
|
||||
},
|
||||
"0.6.12": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DCCC27E30DDFFC",
|
||||
"checksum": "c3418ea4a59d836a6f91d45a9c1e1fe17653c06b0bed79f31a12dec9b2eb53f5"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DCCC28609416EF",
|
||||
"checksum": "8eee90cdc0dc26eb5b676c3e5929de9cbcb657f1d7e175089ac5f7fb62be08f5"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DCCC282FD2D223",
|
||||
"checksum": "3706ec35c984aab739310dda2802f165d2cf7d296ff0972e1ba7c4daa725295b"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DCCC27E4DF5B65",
|
||||
"checksum": "89852820f4384192e6faaf6ecb30f5df3b93690d81b10f77d25c0b3bce4a76ed"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DCCC280E8E0C69",
|
||||
"checksum": "bec62ac2c6e9b9497b3879716735b881c280028e2597703bc7ebed538c5c4244"
|
||||
}
|
||||
},
|
||||
"0.6.11": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
22
manifests/cargo-make.json
generated
22
manifests/cargo-make.json
generated
@@ -20,10 +20,28 @@
|
||||
},
|
||||
"license_markdown": "[Apache-2.0](https://github.com/sagiegurari/cargo-make/blob/master/LICENSE)",
|
||||
"latest": {
|
||||
"version": "0.37.15"
|
||||
"version": "0.37.16"
|
||||
},
|
||||
"0.37": {
|
||||
"version": "0.37.15"
|
||||
"version": "0.37.16"
|
||||
},
|
||||
"0.37.16": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DCC8F28CD820A7",
|
||||
"checksum": "54bc9f44bf4508c058652982e8b6e395978e517b088296015f4ad6b7137f62a4"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DCC8F295CF7D8B",
|
||||
"checksum": "c1a2cd01898e6b254b9cdf9a1d45a2692ef072ba055d5ad2b195db17595ad271"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DCC8F2B45A37B6",
|
||||
"checksum": "337bbb6e9deb13ac7569b32ed3470779f7a430a14c716f335b2f13ea0ba8cae6"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DCC8F25FFD15DA",
|
||||
"checksum": "57c6d62c0ac8ae7c3736655834b17b81935ed05717399090ce143dc7118d1ce7"
|
||||
}
|
||||
},
|
||||
"0.37.15": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
42
manifests/typos.json
generated
42
manifests/typos.json
generated
@@ -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.24.1"
|
||||
"version": "1.24.3"
|
||||
},
|
||||
"1": {
|
||||
"version": "1.24.1"
|
||||
"version": "1.24.3"
|
||||
},
|
||||
"1.24": {
|
||||
"version": "1.24.1"
|
||||
"version": "1.24.3"
|
||||
},
|
||||
"1.24.3": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DCC937E17972E7",
|
||||
"checksum": "023136119787a3fbd886423b5fc2e2cd29377dcad7642a0f4edf657253141dcf"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DCC937D42C5529",
|
||||
"checksum": "eb6f2421d90f1bdc7ad00d5e78ece3115f260b06b339aee30dc5ac3066cca5d2"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DCC938308E0D62",
|
||||
"checksum": "3e6c99c10cf5fe243c16e5a4afb96d55c28158a37d3dcd226c1b1b610284a0c9"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DCC937D08E14DC",
|
||||
"checksum": "3ef81441b60a59cb14198af55050d3595d0859d8477076069f7b28ae947946fe"
|
||||
}
|
||||
},
|
||||
"1.24.2": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DCC930B8BCB792",
|
||||
"checksum": "bdf70e9d591dfe31bcdde8af1b801fe1f7735c14f2b968c99d0351168400e59a"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DCC930A1280EA4",
|
||||
"checksum": "3c13ffc7ad0c0a812e3b38808c47638fe1091f7fd2a7b6e68d4687f985f9b61e"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DCC930F436F6CC",
|
||||
"checksum": "8ed7c7c94c09ba24c06985ae95bd3b04a54883b09650d236f67b1ad3717ec63f"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DCC930A9F04F21",
|
||||
"checksum": "09f7bb42b1b1ab835ee94eabbec728e5ebb2db23bd572636d6caf03d4335d9f2"
|
||||
}
|
||||
},
|
||||
"1.24.1": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
Reference in New Issue
Block a user