mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-23 15:50:40 +00:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e553ccd87e | ||
|
|
6b8c00dfc4 | ||
|
|
8b890a7ae1 | ||
|
|
a94d7ba895 | ||
|
|
1f78543d08 | ||
|
|
372d07651e | ||
|
|
93eca7e386 | ||
|
|
0b6da106fc | ||
|
|
48c1473aa8 | ||
|
|
ef1490a90a | ||
|
|
826a56a831 | ||
|
|
502402be82 | ||
|
|
4820827bd3 | ||
|
|
0fc939234b | ||
|
|
37b71c39b2 | ||
|
|
19c71244d4 | ||
|
|
5c256d5a57 | ||
|
|
1dbbb927fa |
@@ -11,10 +11,10 @@ indent_style = space
|
|||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.{json,md,yml}]
|
[*.{json,md,rb,yml,yaml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[*.{js,yml}]
|
[*.{js,yml,yaml}]
|
||||||
quote_type = single
|
quote_type = single
|
||||||
|
|
||||||
[*.sh]
|
[*.sh]
|
||||||
|
|||||||
2
.github/.cspell/project-dictionary.txt
vendored
2
.github/.cspell/project-dictionary.txt
vendored
@@ -1,4 +1,5 @@
|
|||||||
almalinux
|
almalinux
|
||||||
|
archlinux
|
||||||
bindgen
|
bindgen
|
||||||
binstall
|
binstall
|
||||||
coreutils
|
coreutils
|
||||||
@@ -9,6 +10,7 @@ dprint
|
|||||||
enablerepo
|
enablerepo
|
||||||
endgroup
|
endgroup
|
||||||
epel
|
epel
|
||||||
|
espup
|
||||||
grcov
|
grcov
|
||||||
linkcheck
|
linkcheck
|
||||||
mdbook
|
mdbook
|
||||||
|
|||||||
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -103,12 +103,15 @@ jobs:
|
|||||||
- debian:10-slim # glibc 2.28
|
- debian:10-slim # glibc 2.28
|
||||||
- debian:11-slim # glibc 2.31
|
- debian:11-slim # glibc 2.31
|
||||||
- debian:12-slim # glibc 2.36
|
- debian:12-slim # glibc 2.36
|
||||||
- fedora:latest # glibc 2.37 (as of fedora 38)
|
- fedora:latest # glibc 2.38 (as of fedora 39)
|
||||||
- almalinux:8 # glibc 2.28
|
- almalinux:8 # glibc 2.28
|
||||||
- almalinux:8-minimal # glibc 2.28
|
- almalinux:8-minimal # glibc 2.28
|
||||||
- almalinux:9 # glibc 2.34
|
- almalinux:9 # glibc 2.34
|
||||||
- almalinux:9-minimal # glibc 2.34
|
- almalinux:9-minimal # glibc 2.34
|
||||||
- centos:7 # glibc 2.17
|
- centos:7 # glibc 2.17
|
||||||
|
- opensuse/leap:latest # glibc 2.31 (as of leap 15.5)
|
||||||
|
- opensuse/tumbleweed:latest # glibc 2.39 (as of 2024-04-18)
|
||||||
|
- archlinux:latest # glibc 2.38 (as of 2024-04-18)
|
||||||
- alpine:latest # musl 1.2.4 (as of alpine 3.19)
|
- alpine:latest # musl 1.2.4 (as of alpine 3.19)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
@@ -126,6 +129,15 @@ jobs:
|
|||||||
curl --proto '=https' --tlsv1.2 -fsSL --retry 10 https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --no-modify-path
|
curl --proto '=https' --tlsv1.2 -fsSL --retry 10 https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --no-modify-path
|
||||||
echo "$HOME/.cargo/bin" >>"${GITHUB_PATH}"
|
echo "$HOME/.cargo/bin" >>"${GITHUB_PATH}"
|
||||||
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux') || startsWith(matrix.container, 'centos')
|
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux') || startsWith(matrix.container, 'centos')
|
||||||
|
- name: Install requirements (opensuse)
|
||||||
|
run: |
|
||||||
|
set -eEuxo pipefail
|
||||||
|
zypper install -y rustup
|
||||||
|
rustup toolchain add stable --profile minimal
|
||||||
|
if: startsWith(matrix.container, 'opensuse')
|
||||||
|
- name: Install requirements (archlinux)
|
||||||
|
run: pacman -Sy --noconfirm rust
|
||||||
|
if: startsWith(matrix.container, 'archlinux')
|
||||||
- name: Install requirements (alpine)
|
- name: Install requirements (alpine)
|
||||||
run: apk --no-cache add bash cargo
|
run: apk --no-cache add bash cargo
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|||||||
10
.markdownlint-cli2.yaml
Normal file
10
.markdownlint-cli2.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# https://github.com/DavidAnson/markdownlint#rules--aliases
|
||||||
|
config:
|
||||||
|
line-length: false
|
||||||
|
no-duplicate-heading: false
|
||||||
|
no-inline-html: false
|
||||||
|
no-emphasis-as-heading: false
|
||||||
|
|
||||||
|
# https://github.com/DavidAnson/markdownlint-cli2#markdownlint-cli2jsonc
|
||||||
|
noBanner: true
|
||||||
|
noProgress: true
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# https://github.com/DavidAnson/markdownlint#rules--aliases
|
|
||||||
|
|
||||||
MD013: false # line-length
|
|
||||||
MD024: false # no-duplicate-heading/no-duplicate-header
|
|
||||||
MD033: false # no-inline-html
|
|
||||||
MD036: false # no-emphasis-as-heading/no-emphasis-as-header
|
|
||||||
39
CHANGELOG.md
39
CHANGELOG.md
@@ -10,6 +10,36 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.33.3] - 2024-04-21
|
||||||
|
|
||||||
|
- Update `sccache@latest` to 0.8.0.
|
||||||
|
|
||||||
|
## [2.33.2] - 2024-04-20
|
||||||
|
|
||||||
|
- Update `parse-changelog@latest` to 0.6.8.
|
||||||
|
|
||||||
|
## [2.33.1] - 2024-04-19
|
||||||
|
|
||||||
|
- Update `parse-changelog@latest` to 0.6.7.
|
||||||
|
|
||||||
|
## [2.33.0] - 2024-04-19
|
||||||
|
|
||||||
|
- Support `espup`. ([#456](https://github.com/taiki-e/install-action/pull/456))
|
||||||
|
|
||||||
|
- Improve support for SUSE/Arch based containers/self-hosted runners.
|
||||||
|
|
||||||
|
## [2.32.20] - 2024-04-17
|
||||||
|
|
||||||
|
- Update `cargo-hack@latest` to 0.6.28.
|
||||||
|
|
||||||
|
## [2.32.19] - 2024-04-17
|
||||||
|
|
||||||
|
- Update `typos@latest` to 1.20.9.
|
||||||
|
|
||||||
|
## [2.32.18] - 2024-04-16
|
||||||
|
|
||||||
|
- Update `biome@latest` to 1.7.0.
|
||||||
|
|
||||||
## [2.32.17] - 2024-04-13
|
## [2.32.17] - 2024-04-13
|
||||||
|
|
||||||
- Update `cargo-tarpaulin@latest` to 0.28.0.
|
- Update `cargo-tarpaulin@latest` to 0.28.0.
|
||||||
@@ -2057,7 +2087,14 @@ Note: This release is considered a breaking change because installing on version
|
|||||||
|
|
||||||
Initial release
|
Initial release
|
||||||
|
|
||||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.32.17...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.33.3...HEAD
|
||||||
|
[2.33.3]: https://github.com/taiki-e/install-action/compare/v2.33.2...v2.33.3
|
||||||
|
[2.33.2]: https://github.com/taiki-e/install-action/compare/v2.33.1...v2.33.2
|
||||||
|
[2.33.1]: https://github.com/taiki-e/install-action/compare/v2.33.0...v2.33.1
|
||||||
|
[2.33.0]: https://github.com/taiki-e/install-action/compare/v2.32.20...v2.33.0
|
||||||
|
[2.32.20]: https://github.com/taiki-e/install-action/compare/v2.32.19...v2.32.20
|
||||||
|
[2.32.19]: https://github.com/taiki-e/install-action/compare/v2.32.18...v2.32.19
|
||||||
|
[2.32.18]: https://github.com/taiki-e/install-action/compare/v2.32.17...v2.32.18
|
||||||
[2.32.17]: https://github.com/taiki-e/install-action/compare/v2.32.16...v2.32.17
|
[2.32.17]: https://github.com/taiki-e/install-action/compare/v2.32.16...v2.32.17
|
||||||
[2.32.16]: https://github.com/taiki-e/install-action/compare/v2.32.15...v2.32.16
|
[2.32.16]: https://github.com/taiki-e/install-action/compare/v2.32.15...v2.32.16
|
||||||
[2.32.15]: https://github.com/taiki-e/install-action/compare/v2.32.14...v2.32.15
|
[2.32.15]: https://github.com/taiki-e/install-action/compare/v2.32.14...v2.32.15
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ https://spdx.org/licenses
|
|||||||
| [**cargo-valgrind**](https://github.com/jfrimmel/cargo-valgrind) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/jfrimmel/cargo-valgrind/releases) | Linux, macOS, Windows | [MIT](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-MIT) or [Apache-2.0](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-APACHE) |
|
| [**cargo-valgrind**](https://github.com/jfrimmel/cargo-valgrind) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/jfrimmel/cargo-valgrind/releases) | Linux, macOS, Windows | [MIT](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-MIT) or [Apache-2.0](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-APACHE) |
|
||||||
| [**cross**](https://github.com/cross-rs/cross) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/cross-rs/cross/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-MIT) |
|
| [**cross**](https://github.com/cross-rs/cross) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/cross-rs/cross/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**dprint**](https://github.com/dprint/dprint) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/dprint/dprint/releases) | Linux, macOS, Windows | [MIT](https://github.com/dprint/dprint/blob/HEAD/LICENSE) |
|
| [**dprint**](https://github.com/dprint/dprint) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/dprint/dprint/releases) | Linux, macOS, Windows | [MIT](https://github.com/dprint/dprint/blob/HEAD/LICENSE) |
|
||||||
|
| [**espup**](https://github.com/esp-rs/espup) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/esp-rs/espup/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/esp-rs/espup/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/esp-rs/espup/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**git-cliff**](https://github.com/orhun/git-cliff) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/orhun/git-cliff/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/orhun/git-cliff/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/orhun/git-cliff/blob/HEAD/LICENSE-MIT) |
|
| [**git-cliff**](https://github.com/orhun/git-cliff) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/orhun/git-cliff/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/orhun/git-cliff/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/orhun/git-cliff/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**grcov**](https://github.com/mozilla/grcov) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/mozilla/grcov/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/mozilla/grcov/blob/HEAD/LICENSE-MPL-2.0) |
|
| [**grcov**](https://github.com/mozilla/grcov) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/mozilla/grcov/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/mozilla/grcov/blob/HEAD/LICENSE-MPL-2.0) |
|
||||||
| [**hyperfine**](https://github.com/sharkdp/hyperfine) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/sharkdp/hyperfine/releases) | Linux, macOS, Windows | [MIT](https://github.com/sharkdp/hyperfine/blob/HEAD/LICENSE-MIT) or [Apache-2.0](https://github.com/sharkdp/hyperfine/blob/HEAD/LICENSE-APACHE) |
|
| [**hyperfine**](https://github.com/sharkdp/hyperfine) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/sharkdp/hyperfine/releases) | Linux, macOS, Windows | [MIT](https://github.com/sharkdp/hyperfine/blob/HEAD/LICENSE-MIT) or [Apache-2.0](https://github.com/sharkdp/hyperfine/blob/HEAD/LICENSE-APACHE) |
|
||||||
@@ -147,7 +148,7 @@ See the linked documentation for information on security when installed using [s
|
|||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
This action has been tested for GitHub-hosted runners (Ubuntu, macOS, Windows) and containers (Ubuntu, Debian, Alpine, Fedora, CentOS, Alma).
|
This action has been tested for GitHub-hosted runners (Ubuntu, macOS, Windows) and containers (Ubuntu, Debian, Fedora, CentOS, Alma, openSUSE, Arch, Alpine).
|
||||||
To use this action in self-hosted runners or in containers, at least the following tools are required:
|
To use this action in self-hosted runners or in containers, at least the following tools are required:
|
||||||
|
|
||||||
- bash
|
- bash
|
||||||
|
|||||||
59
main.sh
59
main.sh
@@ -87,12 +87,23 @@ download_and_extract() {
|
|||||||
|
|
||||||
local tar_args=()
|
local tar_args=()
|
||||||
case "${url}" in
|
case "${url}" in
|
||||||
*.tar.gz | *.tgz) tar_args+=("xzf") ;;
|
*.tar.gz | *.tgz)
|
||||||
|
tar_args+=("xzf")
|
||||||
|
if ! type -P gzip &>/dev/null; then
|
||||||
|
case "${base_distro}" in
|
||||||
|
debian | fedora | suse | arch | alpine)
|
||||||
|
echo "::group::Install packages required for installation (gzip)"
|
||||||
|
sys_install gzip
|
||||||
|
echo "::endgroup::"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*.tar.bz2 | *.tbz2)
|
*.tar.bz2 | *.tbz2)
|
||||||
tar_args+=("xjf")
|
tar_args+=("xjf")
|
||||||
if ! type -P bzip2 &>/dev/null; then
|
if ! type -P bzip2 &>/dev/null; then
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
debian | alpine | fedora)
|
debian | fedora | suse | arch | alpine)
|
||||||
echo "::group::Install packages required for installation (bzip2)"
|
echo "::group::Install packages required for installation (bzip2)"
|
||||||
sys_install bzip2
|
sys_install bzip2
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
@@ -109,7 +120,7 @@ download_and_extract() {
|
|||||||
sys_install xz-utils
|
sys_install xz-utils
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
;;
|
;;
|
||||||
alpine | fedora)
|
fedora | suse | arch | alpine)
|
||||||
echo "::group::Install packages required for installation (xz)"
|
echo "::group::Install packages required for installation (xz)"
|
||||||
sys_install xz
|
sys_install xz
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
@@ -120,7 +131,7 @@ download_and_extract() {
|
|||||||
*.zip)
|
*.zip)
|
||||||
if ! type -P unzip &>/dev/null; then
|
if ! type -P unzip &>/dev/null; then
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
debian | alpine | fedora)
|
debian | fedora | suse | arch | alpine)
|
||||||
echo "::group::Install packages required for installation (unzip)"
|
echo "::group::Install packages required for installation (unzip)"
|
||||||
sys_install unzip
|
sys_install unzip
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
@@ -311,6 +322,15 @@ apt_remove() {
|
|||||||
snap_install() {
|
snap_install() {
|
||||||
retry _sudo snap install "$@"
|
retry _sudo snap install "$@"
|
||||||
}
|
}
|
||||||
|
dnf_install() {
|
||||||
|
retry _sudo "${dnf}" install -y "$@"
|
||||||
|
}
|
||||||
|
zypper_install() {
|
||||||
|
retry _sudo zypper install -y "$@"
|
||||||
|
}
|
||||||
|
pacman_install() {
|
||||||
|
retry _sudo pacman -Sy --noconfirm "$@"
|
||||||
|
}
|
||||||
apk_install() {
|
apk_install() {
|
||||||
if type -P sudo &>/dev/null; then
|
if type -P sudo &>/dev/null; then
|
||||||
sudo apk --no-cache add "$@"
|
sudo apk --no-cache add "$@"
|
||||||
@@ -320,14 +340,13 @@ apk_install() {
|
|||||||
apk --no-cache add "$@"
|
apk --no-cache add "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
dnf_install() {
|
|
||||||
retry _sudo "${dnf}" install -y "$@"
|
|
||||||
}
|
|
||||||
sys_install() {
|
sys_install() {
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
debian) apt_install "$@" ;;
|
debian) apt_install "$@" ;;
|
||||||
alpine) apk_install "$@" ;;
|
|
||||||
fedora) dnf_install "$@" ;;
|
fedora) dnf_install "$@" ;;
|
||||||
|
suse) zypper_install "$@" ;;
|
||||||
|
arch) pacman_install "$@" ;;
|
||||||
|
alpine) apk_install "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
init_install_action_bin_dir() {
|
init_install_action_bin_dir() {
|
||||||
@@ -390,14 +409,16 @@ case "$(uname -s)" in
|
|||||||
Linux)
|
Linux)
|
||||||
host_os=linux
|
host_os=linux
|
||||||
if grep -q '^ID_LIKE=' /etc/os-release; then
|
if grep -q '^ID_LIKE=' /etc/os-release; then
|
||||||
base_distro=$(grep '^ID_LIKE=' /etc/os-release | sed 's/^ID_LIKE=//')
|
base_distro=$(grep '^ID_LIKE=' /etc/os-release | cut -d= -f2)
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
*debian*) base_distro=debian ;;
|
*debian*) base_distro=debian ;;
|
||||||
*alpine*) base_distro=alpine ;;
|
|
||||||
*fedora*) base_distro=fedora ;;
|
*fedora*) base_distro=fedora ;;
|
||||||
|
*suse*) base_distro=suse ;;
|
||||||
|
*arch*) base_distro=arch ;;
|
||||||
|
*alpine*) base_distro=alpine ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
base_distro=$(grep '^ID=' /etc/os-release | sed 's/^ID=//')
|
base_distro=$(grep '^ID=' /etc/os-release | cut -d= -f2)
|
||||||
fi
|
fi
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
fedora)
|
fedora)
|
||||||
@@ -426,19 +447,18 @@ case "$(uname -s)" in
|
|||||||
esac
|
esac
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
aarch64 | arm64) host_arch="aarch64" ;;
|
aarch64 | arm64) host_arch="aarch64" ;;
|
||||||
xscale | arm | armv[6-9]l)
|
xscale | arm | armv*l)
|
||||||
# Ignore arm for now, as we need to consider the version and whether hard-float is supported.
|
# Ignore arm for now, as we need to consider the version and whether hard-float is supported.
|
||||||
# https://github.com/rust-lang/rustup/pull/593
|
# https://github.com/rust-lang/rustup/pull/593
|
||||||
# https://github.com/cross-rs/cross/pull/1018
|
# https://github.com/cross-rs/cross/pull/1018
|
||||||
# Does it seem only armv7l+ is supported?
|
# Does it seem only armv7l+ is supported?
|
||||||
# https://github.com/actions/runner/blob/caec043085990710070108f375cd0aeab45e1017/src/Misc/externals.sh#L174
|
# https://github.com/actions/runner/blob/v2.315.0/src/Misc/externals.sh#L189
|
||||||
# https://github.com/actions/runner/issues/688
|
# https://github.com/actions/runner/issues/688
|
||||||
bail "32-bit ARM runner is not supported yet by this action; if you need support for this platform, please submit an issue at <https://github.com/taiki-e/install-action>"
|
bail "32-bit ARM runner is not supported yet by this action; if you need support for this platform, please submit an issue at <https://github.com/taiki-e/install-action>"
|
||||||
;;
|
;;
|
||||||
# GitHub Actions Runner supports Linux (x86_64, aarch64, arm), Windows (x86_64, aarch64),
|
# GitHub Actions Runner supports Linux (x86_64, aarch64, arm), Windows (x86_64, aarch64),
|
||||||
# and macOS (x86_64, aarch64).
|
# and macOS (x86_64, aarch64).
|
||||||
# https://github.com/actions/runner
|
# https://github.com/actions/runner/blob/v2.315.0/.github/workflows/build.yml#L21
|
||||||
# https://github.com/actions/runner/blob/caec043085990710070108f375cd0aeab45e1017/.github/workflows/build.yml#L21
|
|
||||||
# https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-for-self-hosted-runners
|
# https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-for-self-hosted-runners
|
||||||
# So we can assume x86_64 unless it is aarch64 or arm.
|
# So we can assume x86_64 unless it is aarch64 or arm.
|
||||||
*) host_arch="x86_64" ;;
|
*) host_arch="x86_64" ;;
|
||||||
@@ -467,7 +487,7 @@ case "${host_os}" in
|
|||||||
linux)
|
linux)
|
||||||
if ! type -P jq &>/dev/null || ! type -P curl &>/dev/null || ! type -P tar &>/dev/null; then
|
if ! type -P jq &>/dev/null || ! type -P curl &>/dev/null || ! type -P tar &>/dev/null; then
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
debian | fedora | alpine)
|
debian | fedora | suse | arch | alpine)
|
||||||
echo "::group::Install packages required for installation (jq, curl, and/or tar)"
|
echo "::group::Install packages required for installation (jq, curl, and/or tar)"
|
||||||
sys_packages=()
|
sys_packages=()
|
||||||
if ! type -P curl &>/dev/null; then
|
if ! type -P curl &>/dev/null; then
|
||||||
@@ -493,7 +513,7 @@ case "${host_os}" in
|
|||||||
fi
|
fi
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
;;
|
;;
|
||||||
*) warn "install-action requires at least jq and curl on non-Debian/Fedora/Alpine-based Linux" ;;
|
*) warn "install-action requires at least jq and curl on non-Debian/Fedora/SUSE/Arch/Alpine-based Linux" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@@ -574,7 +594,7 @@ for tool in "${tools[@]}"; do
|
|||||||
fi
|
fi
|
||||||
if ! type -P unzip &>/dev/null; then
|
if ! type -P unzip &>/dev/null; then
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
debian | alpine | fedora)
|
debian | fedora | suse | arch | alpine)
|
||||||
echo "::group::Install packages required for installation (unzip)"
|
echo "::group::Install packages required for installation (unzip)"
|
||||||
sys_install unzip
|
sys_install unzip
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
@@ -694,8 +714,7 @@ for tool in "${tools[@]}"; do
|
|||||||
case "${tool_bin_stem}" in
|
case "${tool_bin_stem}" in
|
||||||
# biome up to 1.2.2 exits with 1 on both --version and --help flags.
|
# biome up to 1.2.2 exits with 1 on both --version and --help flags.
|
||||||
# cargo-machete up to 0.6.0 does not support --version flag.
|
# cargo-machete up to 0.6.0 does not support --version flag.
|
||||||
biome) rx "${tool_bin_stem}" --version || true ;;
|
biome | cargo-machete) rx "${tool_bin_stem}" --version || true ;;
|
||||||
cargo-machete) rx "${tool_bin_stem}" "${tool_bin_stem#cargo-}" --version || true ;;
|
|
||||||
# these packages support neither --version nor --help flag.
|
# these packages support neither --version nor --help flag.
|
||||||
cargo-careful | wasm-bindgen-test-runner) ;;
|
cargo-careful | wasm-bindgen-test-runner) ;;
|
||||||
# wasm2es6js does not support --version flag and --help flag doesn't contains version info.
|
# wasm2es6js does not support --version flag and --help flag doesn't contains version info.
|
||||||
|
|||||||
27
manifests/biome.json
generated
27
manifests/biome.json
generated
@@ -35,10 +35,33 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "1.6.4"
|
"version": "1.7.0"
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"version": "1.6.4"
|
"version": "1.7.0"
|
||||||
|
},
|
||||||
|
"1.7": {
|
||||||
|
"version": "1.7.0"
|
||||||
|
},
|
||||||
|
"1.7.0": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "9e8df2e263bd1a3c057a661682b280edf73c40a288f0c3267d11fcde2553cb87"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "2586beedcefa5ad6c5f2ae43148bf4c4e266eab3718e8b0355deb3b388e03358"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "a305a0e39b54301c97ab72c40db3409cc7d452096eee659c2402338402126f24"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"checksum": "a042bf5ee40e0b84ee7860a58af69d0766db719eec5a103e9f09b2eef08cf663"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "3ea37facceb5f565bd6ec5e343ed7aa4257ae78f42671dd68d9af06a1018803b"
|
||||||
|
},
|
||||||
|
"aarch64_windows": {
|
||||||
|
"checksum": "89d972f4d3e41475802b9d3f0e1dc6ed9d31079e8902813f9e4a5600fd814a81"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"1.6": {
|
"1.6": {
|
||||||
"version": "1.6.4"
|
"version": "1.6.4"
|
||||||
|
|||||||
30
manifests/cargo-hack.json
generated
30
manifests/cargo-hack.json
generated
@@ -2,10 +2,36 @@
|
|||||||
"rust_crate": "cargo-hack",
|
"rust_crate": "cargo-hack",
|
||||||
"template": null,
|
"template": null,
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.6.27"
|
"version": "0.6.28"
|
||||||
},
|
},
|
||||||
"0.6": {
|
"0.6": {
|
||||||
"version": "0.6.27"
|
"version": "0.6.28"
|
||||||
|
},
|
||||||
|
"0.6.28": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.28/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
|
||||||
|
"checksum": "ddc2c14d114c26e21d1cfb2703a736e6ad3d85acee77cdd2df0c701e3115d778"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.28/cargo-hack-x86_64-apple-darwin.tar.gz",
|
||||||
|
"checksum": "d4ed122da3a1fd43c2ae97386d945e007e9793e1bc4833703827b59166d414ed"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.28/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
|
||||||
|
"checksum": "e4ee6550969fb4499f6df12f472ac68562668a9e02a5ba320d0abc44a1da66e3"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.28/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
|
||||||
|
"checksum": "f2b9f9e2fd587b8bc32c5db0bc18a6e40be6fe70c83d43c1f1a5fbc69a3237a8"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.28/cargo-hack-aarch64-apple-darwin.tar.gz",
|
||||||
|
"checksum": "309b23964961cb78ebb47344ede27d06a8c6c1b7b7acb051208769dda7e7661e"
|
||||||
|
},
|
||||||
|
"aarch64_windows": {
|
||||||
|
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.28/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
|
||||||
|
"checksum": "d1c21607a2f052dd14bfefd29c382f196fde6dae120e73cfb0054a457223fdbd"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.6.27": {
|
"0.6.27": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
464
manifests/espup.json
generated
Normal file
464
manifests/espup.json
generated
Normal file
@@ -0,0 +1,464 @@
|
|||||||
|
{
|
||||||
|
"rust_crate": "espup",
|
||||||
|
"template": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"url": "https://github.com/esp-rs/espup/releases/download/v${version}/espup-x86_64-unknown-linux-gnu.zip"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"url": "https://github.com/esp-rs/espup/releases/download/v${version}/espup-x86_64-apple-darwin.zip"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"url": "https://github.com/esp-rs/espup/releases/download/v${version}/espup-x86_64-pc-windows-msvc.zip"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"url": "https://github.com/esp-rs/espup/releases/download/v${version}/espup-aarch64-unknown-linux-gnu.zip"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"url": "https://github.com/esp-rs/espup/releases/download/v${version}/espup-aarch64-apple-darwin.zip"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"latest": {
|
||||||
|
"version": "0.11.0"
|
||||||
|
},
|
||||||
|
"0.11": {
|
||||||
|
"version": "0.11.0"
|
||||||
|
},
|
||||||
|
"0.11.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "c5e61c9a680ecb68f2b35ee17709c08cce7806b8a5ea0c37ac0979a71fa4f549"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "c2bcb7d6203728ba11fc5b3e0a5a0596257f575f33a2b07b312b7adc7ca2b0b0"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "f760eb7111d38d6044caf831cf64512b311a565b225f6fc24d867afd7826179b"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "72dd9d2b6505b014283746f5e9aa477ceab067670a3d119e04fd97d7b7300c4e"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "6bdfc6d8787c23b03e3b3b4112c354621c93123c56ab4b53ffa869f2b9d1df9b"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.10": {
|
||||||
|
"version": "0.10.0"
|
||||||
|
},
|
||||||
|
"0.10.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "ca70fa0e2b491fcc9a4d6b96d7a80866c01de4d55ce3c5725d1890735f264aea"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "8aac2148dd41f717a968395486b4c903c1efcc1533aba581a678bfe662ecb8f5"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "1cb2a856c5604eb4bba0be5c8dfdb395fe2ecad97037142069bce7d6ed8d3b06"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "3ca7f300faab743191cab7f037e1341f88c0503265decb3408ba9173c9b96a4c"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "9eaa530208633d686840e647c613ea8ff6a69fb400b3ebd9a09d13428db36811"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.9": {
|
||||||
|
"version": "0.9.0"
|
||||||
|
},
|
||||||
|
"0.9.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "a07e4759519b5ec216fb7f8ae8f078f632ba570bbfb218729f5d6e7e57752601"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "fadeeb8e570f52737d738797e29a13f5a92e56095c60eb1b623a17170a49cc48"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "259f58c87fc13de5d008579274e060b06c4beba66c9e3cf95f1fa6fb31230534"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "75ee11f57c6aaa51dd3f0e5925355a3ab6686922721fb1608fd5c34fab3fde65"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "c60aeca657dbf31a90ef1f76dc99d197cd9ca2201dd1b5812bd1f2c6f553a53f"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.8": {
|
||||||
|
"version": "0.8.0"
|
||||||
|
},
|
||||||
|
"0.8.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "b1edd222e9ba62c689dc020e7871a762140f68e83da72a3d27b7e78baa226359"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "c28fdaaffddf50a74bf13d75546284c328dfdc6e56494b92d6ade845fe0218ec"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "ee27fcc80f950fecd84fb87611227f9e264b87991824d497ce9147afd3e2dfa0"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "0479c7b05d6d9e484b68732977f5366619cb4302b0d454be1496242cfcb47af0"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "c3fa06787c2445889881fbe6dbd3fb14a8f2289729683d4999c32471b639d57f"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.7": {
|
||||||
|
"version": "0.7.0"
|
||||||
|
},
|
||||||
|
"0.7.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "7b471314d7d61b5f6d4029c51dab9fb778cd6a16d997890c9ace05046af95011"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "c22afb7e46ae384e3a331db8c566d962065c8edc4a898dfa6ec214250325f62b"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "e7e63cdaa805225af94d02d8f58c25c189d345c14d74fa81cba40bb35c4b7d77"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "ae270f69f631d595faad2721adb278581ed0b2e427ad021448832d29b5eeb4c9"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "8ec65c9a2bb7b0f94edb4585cfff020eef3e56827c5466b5d56bcc67401469bf"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.6": {
|
||||||
|
"version": "0.6.1"
|
||||||
|
},
|
||||||
|
"0.6.1": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "3c158f242397dc94a99bb2582653961f311093d3f67c0015a2913b2b5633bb63"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "0a04c56f10289d54f0eb9a0c06097b6243f7e76ba78450659f9b35557653c368"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "cf7285401183292a2f35d84ae09533f3190ebe9eda1bfd3004d8c1c5fcf9c510"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "b331abd7166950e1035e5d88c51d2e0e3d1d5a853490967877c61c5fc6ddc184"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "731a638a05d5349dc32bf6c5e81cf34eddbd7287b992059c3993c6776aca6efc"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.6.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "c495a00a5bd88879b2319d1443cbd038048dba6edb208e91c5cf76418dff86c8"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "45da5140fe9cf72b0e4e3a8d4e829f2d37a9e7ef8267094565dd47fb4e3fb38c"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "00859fcb5c0cee75212422c9279867d369177337a4b1194eac3142a112476b7c"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "a28ea03a356071aa9a333ae81a8145683f1ba0408f11be614ebbac1066740657"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "4fe3d8ba0dcaacef4dd76826c6398a8a0d3297f50226fa307e3ee1524ce1b6cb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.5": {
|
||||||
|
"version": "0.5.0"
|
||||||
|
},
|
||||||
|
"0.5.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "383e71da20eacec51499bd3c0470abe3ec246172ff034c0384d0a5413dd8d315"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "748438256097bd82ac6bb528a909c58b2906ff9e1c6c38380cdff8e08bf546e9"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "9ce029d643db3dfdd4d21a99e910632e530b4594d307031dcf2602e307472e32"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "3eea3ae14c58dd2321ae885f9f09fbaa71920b56e728237823bf884928f80f3a"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "ec36f876c9b6f3025d49dcda16e9765e26922b124e4bac8b13d6af5a7519182d"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.4": {
|
||||||
|
"version": "0.4.1"
|
||||||
|
},
|
||||||
|
"0.4.1": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "685da2e7c923ff0ce4a80a4691b2f1fb4661bfb86ac710ba8fb66ee4f1904842"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "71b8264ce5bc6f42ef53d284bfdb3540ff08e79441fb286a502630cc96726438"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "567e325aa4934be2ee4be2f1d24d1801fc4db78aa7ed09653de18502b851d56f"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "c98a7b0fbd45453e9c91bb35791506f9fae2ed768601d1187866546f5349c868"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "81c5fd62d8fcbd3a0df2ad0b6803863da9a9eac4a717c44e327bad3c13e00e48"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.4.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "942ad537212676c52bbb8370695cea056148f9577cae54a0721fb596b4f1b6b8"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "98dfe0a6c64b06baa4565a10ae1af124daceb0b2aa15d606b28284271d8eba32"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "1063e2dd3e434246e962a5ec8de355785cd830aa9515f522b0732257e44db878"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "8ea5e89c2dbf850a5122683c6a9207a38d6855297fe9571277b340b206f3e9e0"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "ff371b56e16dc331fcdd38e8ef9b354fbe75e916b8cc627bb91870362513ad81"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.3": {
|
||||||
|
"version": "0.3.2"
|
||||||
|
},
|
||||||
|
"0.3.2": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "89d415976f1b97ac5168565915667e325cacf95cf1122a6c0ab287c0f3187ecf"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "11ea5b9096b77646319613efaa3e92825253e9b324f1472f7a0902fa9b2e9403"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "18fed4294e0f6a30f3873bc84d31acdce67561c565e8e44a73f14918eb6c7131"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "952abade1330b9f785b2cbfcd044c58dd9d3243966fba1894d10a031cf78ab87"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "670948c4cf2140a0448e702cb77366c52d492c0b7f7763425e75097ba5a45da9"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.3.1": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "b72fce4f9769212bf852631b8d953802324e8d59b064a182726bdd9df4a44a3d"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "96aedbc89b35be65acfd536c40384b1dd2231b228a1d160ecb54481c0fd65e14"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "c98238614b4385fc6e6bd86c26270ddc5f9c71b3ba22e6f45795ba2f18993522"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "9afa1528ac6d4b341f06c3b829f1bff17d1052ba76b4f794d4776905b74a5ea9"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "705ff26eb909a81e5fce6830a38b4e7dbc833380aa539041bca5c160ed8f278d"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.3.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "d255da4791a6ddf94f213b2a1e5929143e7fbf19e6e019ff8aab11498a604ffb"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "648b8af89d58d75cf5c7becd9b0bf3bfcfd56b83ccc0f139896df0f798bb5d5a"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "12eb1cdedd4591b26eca904fb7c7e921c919bdad82039dac772f90aaa14bc299"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "c02aea392ce6413c7951df2cb7e936f5545c4fe5ed864b7a11252ca469af2ab5"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "540eb8a78ca14dd69189461934a615c3d68510522c4e8744d7c2c1db7ad603bf"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2": {
|
||||||
|
"version": "0.2.9"
|
||||||
|
},
|
||||||
|
"0.2.9": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "896d36d739ddd246b4d1ab8f3145f8bc32417dcbd75ccd49223d50950be1e78f"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "79bed7ae7a78ad81d6cd190e397d7b312b3f0cea37e3b0bccb99ea8330d9867b"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "1eff5fdb51923329dab361132a8a00469864a9f2a12530400d981a59d8e6dfe2"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "108345e27257b3413e15227ba8fdd24326df1c5a56a6774f242863955fc15d07"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "199dc49126772dc50692c1688955abe5f3725176e63b454d065e7c401a73d9c8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.8": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "a3b533e601aa67e3202f4fc007c84927c0b6f1f1864031edf186c62b3a5c4062"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "9bd4a709f59ab3d95bc25d054fba433724440981313863b8b274109a2aa60796"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "9bfdeeb71cb0215e5af1c83ec89ed662186b096e8d2189205b3f0f7eabb9829b"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "721ec39e4bd7cb550e1f296b8441f27b6c4c7e67695b15da2587d53c7d80d80a"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "d3b200071dae4fa03ea0c7a7be357e5d804e313673981bd556b7305d0e8a3603"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.7": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "4e7a3aee73826d14d0289b9e93f6e81f3a3de90e192a30b4d5c1664bad3965c1"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "d843c37e558446d235ff0d84d6d91f99609fd2d79c8085752885a79673caa9c2"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "4b14ee55d6cb70b9a50963ab1d076c97e71763833bd2a4cf74b2809a232a00f0"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "eaf437be7a7d3a4aba042488bdec31a6e17cd2962efe395a06a5e8bbbd556d30"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "83febbb3b6eb94c4a0aa51e1b3f7a2c7a0c8e7249aaeb1d05f5092bbe3e2a6ed"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.6": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "cbaf6b8f7849e23366714b2a2319cc1b620519b7398e10413457a4b2447f7d9d"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "c45b1876b89960792675d394050456fec504e16f78241a5263f1b77d8758a4be"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "2147253593048e7fa0ffebe8a80aa1d6b6e36cad96f0fb361db9000968ddbe33"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "dda535c1842e4cac696b287abb0fc938ce457ca8bdddbeed11da58e3e4d45b3d"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "c5433bb294ba9dedc0801509a903e8a025a07efd3fe55f047323ef9d0d435d09"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.5": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "a2e6282538ef7272166bc7e188f07a46d8577de754d74108f90dd9e079782448"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "bf4163499ced01cb3f99571a213571ce7b2384b24bc0d3f5857f87a683782041"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "41ed36e66e3a92fdf5ebac343249f1d9326ed3ba6c4d18b72d096d8874abdb7d"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "0835a9c8dd1157780f05e26cfc0b5b5b130085009012cf1abb3b9682a39ce445"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "d0cca810afae92c2790dea5021c753baccb0d72eba83089b9f9bc61115c4a14e"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.4": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "e0f149892ded57167bac6258bb83aeaf78db763b81b8fa0f6f357fa84e0b8275"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "24bfbb5602ed66eee2af666fbfc52c3965e05454222d9fdcefe478508d52a7a5"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "ea689fd7a48b9002a22dd56587252b419f2e230f268c2f1eaa0f39a5d460b3b7"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "1dcaeb3e813921f35bde24b09913a7286e23586b5e35961989ae4fa8b6aee684"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "daf0fd4a3eaa5b338fbbd5d49c117a17fe45cae6600eec992fe7100458926e26"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.3": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "7b864a48e661fb974375bb984dd8078c53dc049bd63e9d7841bfaa474bfee7d3"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "4f3758accf1e5449646a7c0e3ce0f3931d4c2989cb9e3eb59f429949cb593db6"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "72d7503e84ee6c561edc9bac965424b4e81cb693f85a05be5f9a31e3cc7988b0"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "5624252f61fad0813b398084d94fddf164af3c7f5944b3e5c6fcd47ed91cfbfc"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "c3f88dc363a61a2927437dbc272dc5318a43a1c4dcd4e1b263676bebfc6064cb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.2": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "5adda795d6e0c89a2af8578fda0f483d62c714ba6de309cd85f7af82f9a66f23"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "9c037538847171eb49a7ebf487b5dec886a6c75958f51be7a32c975697caaaca"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "b9af83c899681d4590110d0fb552eb73e711e8ad1ff84620e88f14a3502fed5b"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "ecbaf29288776317591b85ce7114153122351d17ee73a6b6f1a50d7af037f8de"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "bcb35cdb27cd9658b82e479edd74e7f5245a79e59e60def3bdebb4993f9e58d8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.1": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "ac61ef0e0118650c8cbb9c9288cabf3546bb80a799d6c6bad238003b4de3df49"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "260d6ac607006127d599b36c7d32f94a3d22b31c9ad191f9f65ccaa09672da12"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "f0a05cbccae03154822bf4f7de7bf2a953be6c97d46a61aef3a51fecf2755a7d"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "cce579d9d222ac01b3944187bb7684538580a875f8fb59d397793039603a4784"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "b6f79fcfc03adffbb4e8fd4ffe6d00a40953d9889b6ffe5e99a5ddbc6c121940"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.2.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "5561c5eca9e4670a6aac1adfac694751abdf0d6f03f93949470cf75a38b67fac"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "039971e043b91fc41387ab8d3fd7b89af7662602a311e46099327aac0c492940"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "dfe83f90798dd5f3997b21e5922d1f96ad7914ca4db8cd3b4fd5068b21fd6dba"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "c92103b51956dea1bacb423a6d3234a3fd10e5b87e4984cb89e3b3bb18b2c448"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "451b224c090cc1a8d04cbf6c63fd2d21e4e0d5dd918c7dd92764d22077e8d1a6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.1": {
|
||||||
|
"version": "0.1.0"
|
||||||
|
},
|
||||||
|
"0.1.0": {
|
||||||
|
"x86_64_linux_gnu": {
|
||||||
|
"checksum": "c450fd34ee089e9ad9ef2aef773f49835b2dbeef2783e819604f47194b5f646c"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "e9deb64f10a51d37f00ddfe86ad8c73469d250e327ecfd8bdb5a82823adcd64a"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "5b5de20515fc0dfdeb68abcefccd9abea7525500f52dfca149a3438b6f7c46d6"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "31df56e1460e34acdc3699f14a1b56565ca83472fde58f9760a58e16e67c2ce0"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "56b26580269a7c4d7a5591eb0fdaa34d20e55d5ca5c55cb264bd683867954a15"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
56
manifests/parse-changelog.json
generated
56
manifests/parse-changelog.json
generated
@@ -2,10 +2,62 @@
|
|||||||
"rust_crate": "parse-changelog",
|
"rust_crate": "parse-changelog",
|
||||||
"template": null,
|
"template": null,
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.6.6"
|
"version": "0.6.8"
|
||||||
},
|
},
|
||||||
"0.6": {
|
"0.6": {
|
||||||
"version": "0.6.6"
|
"version": "0.6.8"
|
||||||
|
},
|
||||||
|
"0.6.8": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.8/parse-changelog-x86_64-unknown-linux-musl.tar.gz",
|
||||||
|
"checksum": "c5d34291892c66cf5e2d45e61f822c420a86c48c54631422863894eeee8d11f1"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.8/parse-changelog-x86_64-apple-darwin.tar.gz",
|
||||||
|
"checksum": "37a3fb9b9e1a46c99ca306a2a68a8c317d3011375d7274256389d16986b5c3f4"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.8/parse-changelog-x86_64-pc-windows-msvc.tar.gz",
|
||||||
|
"checksum": "e4f971462c2fb29387af7269634027d57b06c05b644d7412249c8d0c25cfc799"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.8/parse-changelog-aarch64-unknown-linux-musl.tar.gz",
|
||||||
|
"checksum": "a3f1705c925d0b158c0a555a97848baa952d160cc7952dc66e1be1735d787316"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.8/parse-changelog-aarch64-apple-darwin.tar.gz",
|
||||||
|
"checksum": "76314b47a0b6f60b5f635ad9af7577d618ea69759306b954dbe3b0196b32550e"
|
||||||
|
},
|
||||||
|
"aarch64_windows": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.8/parse-changelog-aarch64-pc-windows-msvc.tar.gz",
|
||||||
|
"checksum": "c9e7db9dff60ec0adff8658968d0d9430db9a7c77fd1885b21d688a0d82e88ee"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"0.6.7": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.7/parse-changelog-x86_64-unknown-linux-musl.tar.gz",
|
||||||
|
"checksum": "ca2aa9c8982059327da84bde3bc76df01766d0a2c0e2941fbb88e44d472a3621"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.7/parse-changelog-x86_64-apple-darwin.tar.gz",
|
||||||
|
"checksum": "825747ef16033b9b5cf73d0d8b349ffd6a6ad32366b29f6d637d84d4ed4685d5"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.7/parse-changelog-x86_64-pc-windows-msvc.tar.gz",
|
||||||
|
"checksum": "ce1b92ac2aee88572dc09cf7870ff8f75224a14993af8c2c59063caeaf01f78b"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.7/parse-changelog-aarch64-unknown-linux-musl.tar.gz",
|
||||||
|
"checksum": "5f9c3f5673f828b9c2ab0dc70e54abfbf2d731b333667de42816352e85e8a184"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.7/parse-changelog-aarch64-apple-darwin.tar.gz",
|
||||||
|
"checksum": "ff7c1e6d662ad0a89e0af923b6a1a6b63038d26bc18a0b0758b30cc0c740b073"
|
||||||
|
},
|
||||||
|
"aarch64_windows": {
|
||||||
|
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.7/parse-changelog-aarch64-pc-windows-msvc.tar.gz",
|
||||||
|
"checksum": "543e4df2bc66b767557c64b226d6722fe483a147a6fc7ef203919b2c5c8f2d4a"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.6.6": {
|
"0.6.6": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
22
manifests/sccache.json
generated
22
manifests/sccache.json
generated
@@ -23,7 +23,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.7.7"
|
"version": "0.8.0"
|
||||||
|
},
|
||||||
|
"0.8": {
|
||||||
|
"version": "0.8.0"
|
||||||
|
},
|
||||||
|
"0.8.0": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "2e0e7df61bc7dcf61fd65c1b345d05cd1f832598a15c6f42e7e21f86b8d39b1f"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "d1b871daf7f96f8d01c50746e588d50e2c54559c0de508257db3cb55b7fb8ec0"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "a58bee25f1042477e6a2f9e0e1aae505172d0e85dddedc75b667cccdb3563ed8"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"checksum": "23d6920bf5a21a2269833ca5ef387e59c8dce69c03770b7aa44be4b130b07511"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "9439be7bd81ee86af6e8d866fd129150aefe24c78d857de9c99d57845187fc7e"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.7": {
|
"0.7": {
|
||||||
"version": "0.7.7"
|
"version": "0.7.7"
|
||||||
|
|||||||
20
manifests/typos.json
generated
20
manifests/typos.json
generated
@@ -15,13 +15,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "1.20.8"
|
"version": "1.20.9"
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"version": "1.20.8"
|
"version": "1.20.9"
|
||||||
},
|
},
|
||||||
"1.20": {
|
"1.20": {
|
||||||
"version": "1.20.8"
|
"version": "1.20.9"
|
||||||
|
},
|
||||||
|
"1.20.9": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "3f36e675f9b463b0c385af92653f249f663d09ce1496cc1534f4a848a34cfc04"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "16591f4c39d31e9cb082cfcdb00d4b296a7254f0fa4f6446f27278d43863cb75"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "0acb7374014653b93c34301b2e2c5a7e47a74a88124173b4d6269866d1856687"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "489ec947b024bdce526157e48540aa020c2c7079729c49f7d89d26d29fe4bc72"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"1.20.8": {
|
"1.20.8": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ glibc_pre_2_34_incompat=(
|
|||||||
glibc_pre_2_31_incompat=(
|
glibc_pre_2_31_incompat=(
|
||||||
"${glibc_pre_2_34_incompat[@]}"
|
"${glibc_pre_2_34_incompat[@]}"
|
||||||
cargo-sort
|
cargo-sort
|
||||||
|
espup
|
||||||
zola
|
zola
|
||||||
)
|
)
|
||||||
glibc_pre_2_27_incompat=(
|
glibc_pre_2_27_incompat=(
|
||||||
|
|||||||
13
tools/codegen/base/espup.json
Normal file
13
tools/codegen/base/espup.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"repository": "https://github.com/esp-rs/espup",
|
||||||
|
"tag_prefix": "v",
|
||||||
|
"rust_crate": "${package}",
|
||||||
|
"asset_name": "${package}-${rust_target}.zip",
|
||||||
|
"platform": {
|
||||||
|
"x86_64_linux_gnu": {},
|
||||||
|
"x86_64_macos": {},
|
||||||
|
"x86_64_windows": {},
|
||||||
|
"aarch64_linux_gnu": {},
|
||||||
|
"aarch64_macos": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -819,8 +819,7 @@ impl StringOrArray {
|
|||||||
|
|
||||||
/// GitHub Actions Runner supports Linux (x86_64, aarch64, arm), Windows (x86_64, aarch64),
|
/// GitHub Actions Runner supports Linux (x86_64, aarch64, arm), Windows (x86_64, aarch64),
|
||||||
/// and macOS (x86_64, aarch64).
|
/// and macOS (x86_64, aarch64).
|
||||||
/// https://github.com/actions/runner
|
/// https://github.com/actions/runner/blob/v2.315.0/.github/workflows/build.yml#L21
|
||||||
/// https://github.com/actions/runner/blob/caec043085990710070108f375cd0aeab45e1017/.github/workflows/build.yml#L21
|
|
||||||
/// https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-for-self-hosted-runners
|
/// https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-for-self-hosted-runners
|
||||||
///
|
///
|
||||||
/// Note:
|
/// Note:
|
||||||
@@ -832,8 +831,9 @@ impl StringOrArray {
|
|||||||
/// - Ignore arm for now, as we need to consider the version and whether hard-float is supported.
|
/// - Ignore arm for now, as we need to consider the version and whether hard-float is supported.
|
||||||
/// https://github.com/rust-lang/rustup/pull/593
|
/// https://github.com/rust-lang/rustup/pull/593
|
||||||
/// https://github.com/cross-rs/cross/pull/1018
|
/// https://github.com/cross-rs/cross/pull/1018
|
||||||
/// Does it seem only armv7l is supported?
|
/// Does it seem only armv7l+ is supported?
|
||||||
/// https://github.com/actions/runner/blob/caec043085990710070108f375cd0aeab45e1017/src/Misc/externals.sh#L174
|
/// https://github.com/actions/runner/blob/v2.315.0/src/Misc/externals.sh#L189
|
||||||
|
/// https://github.com/actions/runner/issues/688
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
|
||||||
enum HostPlatform {
|
enum HostPlatform {
|
||||||
|
|||||||
@@ -15,14 +15,6 @@ trap 's=$?; echo >&2 "$0: error on line "${LINENO}": ${BASH_COMMAND}"; exit ${s}
|
|||||||
# Note: This script requires the following tools:
|
# Note: This script requires the following tools:
|
||||||
# - parse-changelog <https://github.com/taiki-e/parse-changelog>
|
# - parse-changelog <https://github.com/taiki-e/parse-changelog>
|
||||||
|
|
||||||
x() {
|
|
||||||
local cmd="$1"
|
|
||||||
shift
|
|
||||||
(
|
|
||||||
set -x
|
|
||||||
"${cmd}" "$@"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
retry() {
|
retry() {
|
||||||
for i in {1..10}; do
|
for i in {1..10}; do
|
||||||
if "$@"; then
|
if "$@"; then
|
||||||
@@ -106,12 +98,6 @@ echo "============== CHANGELOG =============="
|
|||||||
echo "${changes}"
|
echo "${changes}"
|
||||||
echo "======================================="
|
echo "======================================="
|
||||||
|
|
||||||
if [[ -n "${tags}" ]]; then
|
|
||||||
# Create a release commit.
|
|
||||||
x git add "${changelog}"
|
|
||||||
x git commit -m "Release ${version}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
tools=()
|
tools=()
|
||||||
for tool in tools/codegen/base/*.json; do
|
for tool in tools/codegen/base/*.json; do
|
||||||
tools+=("$(basename "${tool%.*}")")
|
tools+=("$(basename "${tool%.*}")")
|
||||||
@@ -119,44 +105,46 @@ done
|
|||||||
# Not manifest-based
|
# Not manifest-based
|
||||||
tools+=(valgrind nextest cargo-nextest)
|
tools+=(valgrind nextest cargo-nextest)
|
||||||
|
|
||||||
(
|
if [[ -n "${tags}" ]]; then
|
||||||
set -x
|
# Create a release commit.
|
||||||
|
|
||||||
git tag "${tag}"
|
|
||||||
retry git push origin main
|
|
||||||
retry git push origin --tags
|
|
||||||
|
|
||||||
major_version_tag="v${version%%.*}"
|
|
||||||
git checkout -b "${major_version_tag}"
|
|
||||||
retry git push origin refs/heads/"${major_version_tag}"
|
|
||||||
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
|
|
||||||
git tag -d "${major_version_tag}"
|
|
||||||
retry git push --delete origin refs/tags/"${major_version_tag}"
|
|
||||||
fi
|
|
||||||
git tag "${major_version_tag}"
|
|
||||||
git checkout main
|
|
||||||
git branch -d "${major_version_tag}"
|
|
||||||
)
|
|
||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
git checkout -b "${tool}"
|
git add "${changelog}"
|
||||||
sed -i -e "s/required: true/required: false/g" action.yml
|
git commit -m "Release ${version}"
|
||||||
sed -i -e "s/# default: #publish:tool/default: ${tool}/g" action.yml
|
|
||||||
git add action.yml
|
|
||||||
git commit -m "${tool}"
|
|
||||||
retry git push origin -f refs/heads/"${tool}"
|
|
||||||
if git --no-pager tag | grep -Eq "^${tool}$"; then
|
|
||||||
git tag -d "${tool}"
|
|
||||||
retry git push --delete origin refs/tags/"${tool}"
|
|
||||||
fi
|
|
||||||
git tag "${tool}"
|
|
||||||
git checkout main
|
|
||||||
git branch -D "${tool}"
|
|
||||||
)
|
)
|
||||||
done
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
git tag "${tag}"
|
||||||
|
retry git push origin main
|
||||||
retry git push origin --tags
|
retry git push origin --tags
|
||||||
|
|
||||||
|
major_version_tag="v${version%%.*}"
|
||||||
|
git checkout -b "${major_version_tag}"
|
||||||
|
retry git push origin refs/heads/"${major_version_tag}"
|
||||||
|
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
|
||||||
|
git tag -d "${major_version_tag}"
|
||||||
|
retry git push --delete origin refs/tags/"${major_version_tag}"
|
||||||
|
fi
|
||||||
|
git tag "${major_version_tag}"
|
||||||
|
retry git push origin --tags
|
||||||
|
git checkout main
|
||||||
|
git branch -d "${major_version_tag}"
|
||||||
|
|
||||||
|
for tool in "${tools[@]}"; do
|
||||||
|
git checkout -b "${tool}"
|
||||||
|
sed -i -e "s/required: true/required: false/g" action.yml
|
||||||
|
sed -i -e "s/# default: #publish:tool/default: ${tool}/g" action.yml
|
||||||
|
git add action.yml
|
||||||
|
git commit -m "${tool}"
|
||||||
|
retry git push origin -f refs/heads/"${tool}"
|
||||||
|
if git --no-pager tag | grep -Eq "^${tool}$"; then
|
||||||
|
git tag -d "${tool}"
|
||||||
|
retry git push --delete origin refs/tags/"${tool}"
|
||||||
|
fi
|
||||||
|
git tag "${tool}"
|
||||||
|
retry git push origin --tags
|
||||||
|
git checkout main
|
||||||
|
git branch -D "${tool}"
|
||||||
|
done
|
||||||
|
|||||||
105
tools/tidy.sh
105
tools/tidy.sh
@@ -35,17 +35,14 @@ check_diff() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
check_config() {
|
||||||
|
if [[ ! -e "$1" ]]; then
|
||||||
|
error "could not found $1 in the repository root"
|
||||||
|
fi
|
||||||
|
}
|
||||||
info() {
|
info() {
|
||||||
echo >&2 "info: $*"
|
echo >&2 "info: $*"
|
||||||
}
|
}
|
||||||
warn() {
|
|
||||||
if [[ -n "${GITHUB_ACTIONS:-}" ]]; then
|
|
||||||
echo "::warning::$*"
|
|
||||||
else
|
|
||||||
echo >&2 "warning: $*"
|
|
||||||
fi
|
|
||||||
should_fail=1
|
|
||||||
}
|
|
||||||
error() {
|
error() {
|
||||||
if [[ -n "${GITHUB_ACTIONS:-}" ]]; then
|
if [[ -n "${GITHUB_ACTIONS:-}" ]]; then
|
||||||
echo "::error::$*"
|
echo "::error::$*"
|
||||||
@@ -71,14 +68,12 @@ fi
|
|||||||
# Rust (if exists)
|
# Rust (if exists)
|
||||||
if [[ -n "$(git ls-files '*.rs')" ]]; then
|
if [[ -n "$(git ls-files '*.rs')" ]]; then
|
||||||
info "checking Rust code style"
|
info "checking Rust code style"
|
||||||
if [[ ! -e .rustfmt.toml ]]; then
|
check_config .rustfmt.toml
|
||||||
warn "could not found .rustfmt.toml in the repository root"
|
|
||||||
fi
|
|
||||||
if type -P rustup &>/dev/null; then
|
if type -P rustup &>/dev/null; then
|
||||||
# `cargo fmt` cannot recognize files not included in the current workspace and modules
|
# `cargo fmt` cannot recognize files not included in the current workspace and modules
|
||||||
# defined inside macros, so run rustfmt directly.
|
# defined inside macros, so run rustfmt directly.
|
||||||
# We need to use nightly rustfmt because we use the unstable formatting options of rustfmt.
|
# We need to use nightly rustfmt because we use the unstable formatting options of rustfmt.
|
||||||
rustc_version=$(rustc -Vv | grep 'release: ' | sed 's/release: //')
|
rustc_version=$(rustc -vV | grep '^release:' | cut -d' ' -f2)
|
||||||
if [[ "${rustc_version}" == *"nightly"* ]] || [[ "${rustc_version}" == *"dev"* ]]; then
|
if [[ "${rustc_version}" == *"nightly"* ]] || [[ "${rustc_version}" == *"dev"* ]]; then
|
||||||
rustup component add rustfmt &>/dev/null
|
rustup component add rustfmt &>/dev/null
|
||||||
echo "+ rustfmt \$(git ls-files '*.rs')"
|
echo "+ rustfmt \$(git ls-files '*.rs')"
|
||||||
@@ -90,7 +85,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
|||||||
fi
|
fi
|
||||||
check_diff $(git ls-files '*.rs')
|
check_diff $(git ls-files '*.rs')
|
||||||
else
|
else
|
||||||
warn "'rustup' is not installed; skipped Rust code style check"
|
error "'rustup' is not installed; skipped Rust code style check"
|
||||||
fi
|
fi
|
||||||
cast_without_turbofish=$(grep -n -E '\.cast\(\)' $(git ls-files '*.rs') || true)
|
cast_without_turbofish=$(grep -n -E '\.cast\(\)' $(git ls-files '*.rs') || true)
|
||||||
if [[ -n "${cast_without_turbofish}" ]]; then
|
if [[ -n "${cast_without_turbofish}" ]]; then
|
||||||
@@ -132,7 +127,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
|||||||
publish=$(jq <<<"${pkg}" -r '.publish')
|
publish=$(jq <<<"${pkg}" -r '.publish')
|
||||||
manifest_path=$(jq <<<"${pkg}" -r '.manifest_path')
|
manifest_path=$(jq <<<"${pkg}" -r '.manifest_path')
|
||||||
if ! grep -q '^\[lints\]' "${manifest_path}" && ! grep -q '^\[lints\.rust\]' "${manifest_path}"; then
|
if ! grep -q '^\[lints\]' "${manifest_path}" && ! grep -q '^\[lints\.rust\]' "${manifest_path}"; then
|
||||||
warn "no [lints] table in ${manifest_path} please add '[lints]' with 'workspace = true'"
|
error "no [lints] table in ${manifest_path} please add '[lints]' with 'workspace = true'"
|
||||||
fi
|
fi
|
||||||
# Publishing is unrestricted if null, and forbidden if an empty array.
|
# Publishing is unrestricted if null, and forbidden if an empty array.
|
||||||
if [[ "${publish}" == "[]" ]]; then
|
if [[ "${publish}" == "[]" ]]; then
|
||||||
@@ -149,10 +144,14 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
|||||||
publish=$(jq <<<"${root_pkg}" -r '.publish')
|
publish=$(jq <<<"${root_pkg}" -r '.publish')
|
||||||
# Publishing is unrestricted if null, and forbidden if an empty array.
|
# Publishing is unrestricted if null, and forbidden if an empty array.
|
||||||
if [[ "${publish}" != "[]" ]]; then
|
if [[ "${publish}" != "[]" ]]; then
|
||||||
if ! grep -Eq '^exclude = \[.*\.\*.*\]' Cargo.toml; then
|
if ! grep -Eq '^exclude = \[.*"/\.\*".*\]' Cargo.toml; then
|
||||||
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
|
error "top-level Cargo.toml of non-virtual workspace should have 'exclude' field with \"/.*\""
|
||||||
elif ! grep -Eq '^exclude = \[.*/tools.*\]' Cargo.toml; then
|
fi
|
||||||
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
|
if [[ -e tools ]] && ! grep -Eq '^exclude = \[.*"/tools".*\]' Cargo.toml; then
|
||||||
|
error "top-level Cargo.toml of non-virtual workspace should have 'exclude' field with \"/tools\" if it exists"
|
||||||
|
fi
|
||||||
|
if [[ -e target-specs ]] && ! grep -Eq '^exclude = \[.*"/target-specs".*\]' Cargo.toml; then
|
||||||
|
error "top-level Cargo.toml of non-virtual workspace should have 'exclude' field with \"/target-specs\" if it exists"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -165,7 +164,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
|||||||
# Top-level hidden files/directories and tools/* are excluded from crates.io (ensured by the above check).
|
# Top-level hidden files/directories and tools/* are excluded from crates.io (ensured by the above check).
|
||||||
# TODO: fully respect exclude field in Cargo.toml.
|
# TODO: fully respect exclude field in Cargo.toml.
|
||||||
case "${p}" in
|
case "${p}" in
|
||||||
.* | tools/*) continue ;;
|
.* | tools/* | target-specs/*) continue ;;
|
||||||
esac
|
esac
|
||||||
if [[ -x "${p}" ]]; then
|
if [[ -x "${p}" ]]; then
|
||||||
executables+="${p}"$'\n'
|
executables+="${p}"$'\n'
|
||||||
@@ -189,35 +188,35 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
|||||||
echo "======================================="
|
echo "======================================="
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
elif [[ -e .rustfmt.toml ]]; then
|
||||||
|
error ".rustfmt.toml is unused"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# C/C++ (if exists)
|
# C/C++ (if exists)
|
||||||
if [[ -n "$(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')" ]]; then
|
if [[ -n "$(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')" ]]; then
|
||||||
info "checking C/C++ code style"
|
info "checking C/C++ code style"
|
||||||
if [[ ! -e .clang-format ]]; then
|
check_config .clang-format
|
||||||
warn "could not found .clang-format in the repository root"
|
|
||||||
fi
|
|
||||||
if type -P clang-format &>/dev/null; then
|
if type -P clang-format &>/dev/null; then
|
||||||
echo "+ clang-format -i \$(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')"
|
echo "+ clang-format -i \$(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')"
|
||||||
clang-format -i $(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')
|
clang-format -i $(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')
|
||||||
check_diff $(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')
|
check_diff $(git ls-files '*.c' '*.h' '*.cpp' '*.hpp')
|
||||||
else
|
else
|
||||||
warn "'clang-format' is not installed; skipped C/C++ code style check"
|
error "'clang-format' is not installed; skipped C/C++ code style check"
|
||||||
fi
|
fi
|
||||||
|
elif [[ -e .clang-format ]]; then
|
||||||
|
error ".clang-format is unused"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# YAML/JavaScript/JSON (if exists)
|
# YAML/JavaScript/JSON (if exists)
|
||||||
if [[ -n "$(git ls-files '*.yml' '*.js' '*.json')" ]]; then
|
if [[ -n "$(git ls-files '*.yml' '*.yaml' '*.js' '*.json')" ]]; then
|
||||||
info "checking YAML/JavaScript/JSON code style"
|
info "checking YAML/JavaScript/JSON code style"
|
||||||
if [[ ! -e .editorconfig ]]; then
|
check_config .editorconfig
|
||||||
warn "could not found .editorconfig in the repository root"
|
|
||||||
fi
|
|
||||||
if type -P npm &>/dev/null; then
|
if type -P npm &>/dev/null; then
|
||||||
echo "+ npx -y prettier -l -w \$(git ls-files '*.yml' '*.js' '*.json')"
|
echo "+ npx -y prettier -l -w \$(git ls-files '*.yml' '*.yaml' '*.js' '*.json')"
|
||||||
npx -y prettier -l -w $(git ls-files '*.yml' '*.js' '*.json')
|
npx -y prettier -l -w $(git ls-files '*.yml' '*.yaml' '*.js' '*.json')
|
||||||
check_diff $(git ls-files '*.yml' '*.js' '*.json')
|
check_diff $(git ls-files '*.yml' '*.yaml' '*.js' '*.json')
|
||||||
else
|
else
|
||||||
warn "'npm' is not installed; skipped YAML/JavaScript/JSON code style check"
|
error "'npm' is not installed; skipped YAML/JavaScript/JSON code style check"
|
||||||
fi
|
fi
|
||||||
# Check GitHub workflows.
|
# Check GitHub workflows.
|
||||||
if [[ -d .github/workflows ]]; then
|
if [[ -d .github/workflows ]]; then
|
||||||
@@ -266,45 +265,45 @@ if [[ -n "$(git ls-files '*.yml' '*.js' '*.json')" ]]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
warn "'python3' is not installed; skipped GitHub workflow check"
|
error "'python3' is not installed; skipped GitHub workflow check"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
warn "'jq' is not installed; skipped GitHub workflow check"
|
error "'jq' is not installed; skipped GitHub workflow check"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ -n "$(git ls-files '*.yaml')" ]]; then
|
if [[ -n "$(git ls-files '*.yaml' | (grep -v .markdownlint-cli2.yaml || true))" ]]; then
|
||||||
error "please use '.yml' instead of '.yaml' for consistency"
|
error "please use '.yml' instead of '.yaml' for consistency"
|
||||||
git ls-files '*.yaml'
|
git ls-files '*.yaml' | (grep -v .markdownlint-cli2.yaml || true)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TOML (if exists)
|
# TOML (if exists)
|
||||||
if [[ -n "$(git ls-files '*.toml')" ]]; then
|
if [[ -n "$(git ls-files '*.toml' | (grep -v .taplo.toml || true))" ]]; then
|
||||||
info "checking TOML style"
|
info "checking TOML style"
|
||||||
if [[ ! -e .taplo.toml ]]; then
|
check_config .taplo.toml
|
||||||
warn "could not found .taplo.toml in the repository root"
|
|
||||||
fi
|
|
||||||
if type -P npm &>/dev/null; then
|
if type -P npm &>/dev/null; then
|
||||||
echo "+ npx -y @taplo/cli fmt \$(git ls-files '*.toml')"
|
echo "+ npx -y @taplo/cli fmt \$(git ls-files '*.toml')"
|
||||||
npx -y @taplo/cli fmt $(git ls-files '*.toml')
|
RUST_LOG=warn npx -y @taplo/cli fmt $(git ls-files '*.toml')
|
||||||
check_diff $(git ls-files '*.toml')
|
check_diff $(git ls-files '*.toml')
|
||||||
else
|
else
|
||||||
warn "'npm' is not installed; skipped TOML style check"
|
error "'npm' is not installed; skipped TOML style check"
|
||||||
fi
|
fi
|
||||||
|
elif [[ -e .taplo.toml ]]; then
|
||||||
|
error ".taplo.toml is unused"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Markdown (if exists)
|
# Markdown (if exists)
|
||||||
if [[ -n "$(git ls-files '*.md')" ]]; then
|
if [[ -n "$(git ls-files '*.md')" ]]; then
|
||||||
info "checking Markdown style"
|
info "checking Markdown style"
|
||||||
if [[ ! -e .markdownlint.yml ]]; then
|
check_config .markdownlint-cli2.yaml
|
||||||
warn "could not found .markdownlint.yml in the repository root"
|
|
||||||
fi
|
|
||||||
if type -P npm &>/dev/null; then
|
if type -P npm &>/dev/null; then
|
||||||
echo "+ npx -y markdownlint-cli2 \$(git ls-files '*.md')"
|
echo "+ npx -y markdownlint-cli2 \$(git ls-files '*.md')"
|
||||||
npx -y markdownlint-cli2 $(git ls-files '*.md')
|
npx -y markdownlint-cli2 $(git ls-files '*.md')
|
||||||
else
|
else
|
||||||
warn "'npm' is not installed; skipped Markdown style check"
|
error "'npm' is not installed; skipped Markdown style check"
|
||||||
fi
|
fi
|
||||||
|
elif [[ -e .markdownlint-cli2.yaml ]]; then
|
||||||
|
error ".markdownlint-cli2.yaml is unused"
|
||||||
fi
|
fi
|
||||||
if [[ -n "$(git ls-files '*.markdown')" ]]; then
|
if [[ -n "$(git ls-files '*.markdown')" ]]; then
|
||||||
error "please use '.md' instead of '.markdown' for consistency"
|
error "please use '.md' instead of '.markdown' for consistency"
|
||||||
@@ -314,19 +313,15 @@ fi
|
|||||||
# Shell scripts
|
# Shell scripts
|
||||||
info "checking Shell scripts"
|
info "checking Shell scripts"
|
||||||
if type -P shfmt &>/dev/null; then
|
if type -P shfmt &>/dev/null; then
|
||||||
if [[ ! -e .editorconfig ]]; then
|
check_config .editorconfig
|
||||||
warn "could not found .editorconfig in the repository root"
|
|
||||||
fi
|
|
||||||
echo "+ shfmt -l -w \$(git ls-files '*.sh')"
|
echo "+ shfmt -l -w \$(git ls-files '*.sh')"
|
||||||
shfmt -l -w $(git ls-files '*.sh')
|
shfmt -l -w $(git ls-files '*.sh')
|
||||||
check_diff $(git ls-files '*.sh')
|
check_diff $(git ls-files '*.sh')
|
||||||
else
|
else
|
||||||
warn "'shfmt' is not installed; skipped Shell scripts style check"
|
error "'shfmt' is not installed; skipped Shell scripts style check"
|
||||||
fi
|
fi
|
||||||
if type -P shellcheck &>/dev/null; then
|
if type -P shellcheck &>/dev/null; then
|
||||||
if [[ ! -e .shellcheckrc ]]; then
|
check_config .shellcheckrc
|
||||||
warn "could not found .shellcheckrc in the repository root"
|
|
||||||
fi
|
|
||||||
echo "+ shellcheck \$(git ls-files '*.sh')"
|
echo "+ shellcheck \$(git ls-files '*.sh')"
|
||||||
if ! shellcheck $(git ls-files '*.sh'); then
|
if ! shellcheck $(git ls-files '*.sh'); then
|
||||||
should_fail=1
|
should_fail=1
|
||||||
@@ -339,7 +334,7 @@ if type -P shellcheck &>/dev/null; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
warn "'shellcheck' is not installed; skipped Shell scripts style check"
|
error "'shellcheck' is not installed; skipped Shell scripts style check"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# License check
|
# License check
|
||||||
@@ -424,7 +419,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
check_diff .github/.cspell/rust-dependencies.txt
|
check_diff .github/.cspell/rust-dependencies.txt
|
||||||
if ! grep -Eq "^\.github/\.cspell/rust-dependencies.txt linguist-generated" .gitattributes; then
|
if ! grep -Eq "^\.github/\.cspell/rust-dependencies.txt linguist-generated" .gitattributes; then
|
||||||
echo "warning: you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
|
error "you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "+ npx -y cspell --no-progress --no-summary \$(git ls-files)"
|
echo "+ npx -y cspell --no-progress --no-summary \$(git ls-files)"
|
||||||
@@ -460,7 +455,7 @@ EOF
|
|||||||
echo "======================================="
|
echo "======================================="
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
warn "'npm' is not installed; skipped spell check"
|
error "'npm' is not installed; skipped spell check"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user