Compare commits

...

23 Commits

Author SHA1 Message Date
Taiki Endo
df5e716edf Release 2.28.7 2024-03-09 13:47:57 +09:00
Taiki Endo
9081a21d93 codegen: Mark just 1.25.0 as no longer broken
Reverts 285438a9d9.
Fixed in b40e006fab.
2024-03-09 13:45:11 +09:00
Taiki Endo
4772f78be9 Update just manifest 2024-03-09 06:09:35 +09:00
Taiki Endo
64e43f34b0 Update cspell dictionary 2024-03-09 02:22:02 +09:00
Taiki Endo
7959d3152f ci: Use taiki-e/checkout-action action
https://github.com/taiki-e/checkout-action
2024-03-09 02:21:40 +09:00
Taiki Endo
6cd93b2dae Release 2.28.6 2024-03-09 00:17:12 +09:00
Taiki Endo
8adeb5bc7d Update biome@latest to 1.6.0 2024-03-09 00:10:48 +09:00
Taiki Endo
715c07ff04 Release 2.28.5 2024-03-08 21:37:56 +09:00
Taiki Endo
7d63af0a88 Update shellcheck@latest to 0.10.0 2024-03-08 12:13:21 +09:00
Taiki Endo
c3145b9a6f Update just manifest 2024-03-08 10:50:24 +09:00
Taiki Endo
285438a9d9 codegen: Mark just 1.25.0 as broken
As of 2024-03-08 01:42 UTC, this release only contains a few Linux binaries.

```
Error: platform list in base manifest for just contains x86_64_macos, but latest release (1.25.0) doesn't contain it; consider marking 1.25.0 as broken by adding 'broken' field to base manifest
```

https://github.com/casey/just/actions/runs/8196561542
2024-03-08 10:43:43 +09:00
Taiki Endo
4978b3c854 Release 2.28.4 2024-03-07 06:17:12 +09:00
Taiki Endo
6224cba8b6 Update syft@latest to 1.0.1 2024-03-07 06:10:58 +09:00
Taiki Endo
203bfd72b0 Release 2.28.3 2024-03-07 01:59:19 +09:00
Taiki Endo
b00c5f12b5 Update cargo-hack@latest to 0.6.21 2024-03-07 01:55:34 +09:00
Taiki Endo
9d24ab5687 Release 2.28.2 2024-03-06 22:34:35 +09:00
Taiki Endo
0d70155cef Update cargo-deny@latest to 0.14.16 2024-03-06 21:15:38 +09:00
Taiki Endo
ab6c6ac273 Update parse-changelog@latest to 0.6.5 2024-03-06 03:21:15 +09:00
Taiki Endo
dabb9c1ee5 Release 2.28.1 2024-03-04 21:56:03 +09:00
Taiki Endo
67d50f4c7a Update wasm-bindgen@latest to 0.2.92 2024-03-04 21:16:01 +09:00
Taiki Endo
ccb87e050c tidy: Fix error on Windows 2024-03-03 05:40:28 +09:00
Taiki Endo
598eb1aa13 tidy: Fix typos 2024-03-03 02:43:01 +09:00
Taiki Endo
fcdd50a1bc tidy: Use yq via venv
Closes #301
2024-03-03 02:40:50 +09:00
14 changed files with 273 additions and 48 deletions

View File

@@ -19,7 +19,6 @@ pwsh
quickinstall
rdme
sccache
shellcheck
shfmt
syft
udeps

View File

@@ -55,7 +55,7 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- uses: taiki-e/github-actions/checkout@main
- 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
@@ -130,7 +130,7 @@ jobs:
run: apk --no-cache add bash cargo
shell: sh
if: startsWith(matrix.container, 'alpine')
- uses: taiki-e/github-actions/checkout@main
- 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
@@ -145,7 +145,7 @@ jobs:
timeout-minutes: 60
container: ubuntu:22.04
steps:
- uses: taiki-e/github-actions/checkout@main
- uses: taiki-e/checkout-action@v1
- name: Generate tool list
id: tool-list
run: tools/ci/tool-list.sh >>"${GITHUB_OUTPUT}"
@@ -160,7 +160,7 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: taiki-e/github-actions/checkout@main
- uses: taiki-e/checkout-action@v1
- name: Install Rust
run: rustup toolchain add nightly --no-self-update && rustup default nightly
- run: tools/manifest.sh

View File

@@ -20,7 +20,7 @@ jobs:
permissions:
contents: write
steps:
- uses: taiki-e/github-actions/checkout@main
- uses: taiki-e/checkout-action@v1
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
target
Cargo.lock
.venv
tmp
# For platform and editor specific settings, it is recommended to add to

View File

@@ -10,6 +10,36 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.28.7] - 2024-03-09
- Update `just@latest` to 1.25.0.
## [2.28.6] - 2024-03-08
- Update `biome@latest` to 1.6.0.
## [2.28.5] - 2024-03-08
- Update `shellcheck@latest` to 0.10.0.
## [2.28.4] - 2024-03-06
- Update `syft@latest` to 1.0.1.
## [2.28.3] - 2024-03-06
- Update `cargo-hack@latest` to 0.6.21.
## [2.28.2] - 2024-03-06
- Update `cargo-deny@latest` to 0.14.16.
- Update `parse-changelog@latest` to 0.6.5.
## [2.28.1] - 2024-03-04
- Update `wasm-bindgen@latest` to 0.2.92.
## [2.28.0] - 2024-03-02
- Support `wasm-bindgen`. ([#383](https://github.com/taiki-e/install-action/pull/383), thanks @Ekleog)
@@ -1837,7 +1867,14 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.28.0...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.28.7...HEAD
[2.28.7]: https://github.com/taiki-e/install-action/compare/v2.28.6...v2.28.7
[2.28.6]: https://github.com/taiki-e/install-action/compare/v2.28.5...v2.28.6
[2.28.5]: https://github.com/taiki-e/install-action/compare/v2.28.4...v2.28.5
[2.28.4]: https://github.com/taiki-e/install-action/compare/v2.28.3...v2.28.4
[2.28.3]: https://github.com/taiki-e/install-action/compare/v2.28.2...v2.28.3
[2.28.2]: https://github.com/taiki-e/install-action/compare/v2.28.1...v2.28.2
[2.28.1]: https://github.com/taiki-e/install-action/compare/v2.28.0...v2.28.1
[2.28.0]: https://github.com/taiki-e/install-action/compare/v2.27.15...v2.28.0
[2.27.15]: https://github.com/taiki-e/install-action/compare/v2.27.14...v2.27.15
[2.27.14]: https://github.com/taiki-e/install-action/compare/v2.27.13...v2.27.14

27
manifests/biome.json generated
View File

@@ -35,10 +35,33 @@
}
},
"latest": {
"version": "1.5.3"
"version": "1.6.0"
},
"1": {
"version": "1.5.3"
"version": "1.6.0"
},
"1.6": {
"version": "1.6.0"
},
"1.6.0": {
"x86_64_linux_musl": {
"checksum": "4a76d09b1c06c3b7c486e99c899076d4f60f8b34d0bb9b41a61abee16345a99c"
},
"x86_64_macos": {
"checksum": "4cf6468c39e3eb45a5bfc4d65365d1b748470d0f97235471263ef7dd66b2bae5"
},
"x86_64_windows": {
"checksum": "43a2df63d8bc3c1afe3560d9a2c4629d6961d31b99d251446ce359e1ce7844dd"
},
"aarch64_linux_musl": {
"checksum": "7897c55191a8c500107764102c0cc5e29f5817829cd4eda6d9e1236aec95cdf7"
},
"aarch64_macos": {
"checksum": "396602d624fe1a68a6ea59a4d75bd43d2643f9283c543e240a86fbd3d21192b6"
},
"aarch64_windows": {
"checksum": "04e5fb6d337f468ab50fae1d2586dd210a8d6adb2cf4879011119b1dcb8446a1"
}
},
"1.5": {
"version": "1.5.3"

View File

@@ -19,10 +19,24 @@
}
},
"latest": {
"version": "0.14.15"
"version": "0.14.16"
},
"0.14": {
"version": "0.14.15"
"version": "0.14.16"
},
"0.14.16": {
"x86_64_linux_musl": {
"checksum": "7b09aafdc42eeae5d67e523469a69e5b5dc65edb87d87fa68b3c014c9a27d780"
},
"x86_64_macos": {
"checksum": "fa2efa5be935d684ba62c64950041eda7ed81af6b49608c6c8bad3c6f140eb2d"
},
"x86_64_windows": {
"checksum": "7d977cb7f37064bda9711adb5d6574f07634aa50b3eaf612ab134b07727e2e6d"
},
"aarch64_macos": {
"checksum": "285cf6fb30341652e07135fd2fdb083455211527985c8cb2f889804a4068cd3e"
}
},
"0.14.15": {
"x86_64_linux_musl": {

View File

@@ -2,10 +2,36 @@
"rust_crate": "cargo-hack",
"template": null,
"latest": {
"version": "0.6.20"
"version": "0.6.21"
},
"0.6": {
"version": "0.6.20"
"version": "0.6.21"
},
"0.6.21": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.21/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "4d1cc13c72ac620df9265506ad8dd03f84117c8c653586be3d73590e013fe9a8"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.21/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "675e3a63d6e741a53363e71b29f7babd1f685cfa14168b8914116cdb176f38e0"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.21/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "f57ea407c7a2a11c6e31102087b8689c44ecdd8f8eb7c76fe98002cc7efd2f84"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.21/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "52159eb4d6b03441d6a696dc52dd3c46ff06b4983df8524c5d908bcd53c9425d"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.21/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "e37a2eaa79cb04d8868d8c23f45af296433d60b75181bed0be49650cfd7c0c6e"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.21/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "faa6323ebb18e54038b19c61d138793c9b1e31dd64e337cbc64cc283faa62a3c"
}
},
"0.6.20": {
"x86_64_linux_musl": {

24
manifests/just.json generated
View File

@@ -18,10 +18,30 @@
}
},
"latest": {
"version": "1.24.0"
"version": "1.25.0"
},
"1": {
"version": "1.24.0"
"version": "1.25.0"
},
"1.25": {
"version": "1.25.0"
},
"1.25.0": {
"x86_64_linux_musl": {
"checksum": "1eeda5d8b319ce7868ee43748687f849e5a9ec2d03f64e0ebeda05af08f67af4"
},
"x86_64_macos": {
"checksum": "fbf2ef5ab53470c9fbce7f76b87008145addea90671148850e01ac204e3b461b"
},
"x86_64_windows": {
"checksum": "76a99c45395ccae0c2e8d95886c7059fde8f2f6cb25c697f55fd9252fe4930ea"
},
"aarch64_linux_musl": {
"checksum": "c73a41acce0f0913405e33009d60645824576a1177039bed9c7575f4c153eb0f"
},
"aarch64_macos": {
"checksum": "cbea371d2e15e94b33f3097eaf0ec97906c7b41ed81cf2d7d3ca972f1774f3ea"
}
},
"1.24": {
"version": "1.24.0"

View File

@@ -2,10 +2,36 @@
"rust_crate": "parse-changelog",
"template": null,
"latest": {
"version": "0.6.4"
"version": "0.6.5"
},
"0.6": {
"version": "0.6.4"
"version": "0.6.5"
},
"0.6.5": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.5/parse-changelog-x86_64-unknown-linux-musl.tar.gz",
"checksum": "73ab820f50a26cce5548e1c6d3e4e97fa008bbad80c4bc844fcc5e89a2b540ca"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.5/parse-changelog-x86_64-apple-darwin.tar.gz",
"checksum": "aa12781c8d57865d18217286fdf10c1eb772636e7e86b20425335858d76aad03"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.5/parse-changelog-x86_64-pc-windows-msvc.tar.gz",
"checksum": "98d13ef997a8da38d5b419d516c48da302042f054d3a89238cfab0f1ba6971ba"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.5/parse-changelog-aarch64-unknown-linux-musl.tar.gz",
"checksum": "33f67cfed6d4ed71da5e873026723a70d79ca99a53bcb1ab2121b33c591ad45d"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.5/parse-changelog-aarch64-apple-darwin.tar.gz",
"checksum": "77dffac8a8f562172ba0b19a998665a02c0a60f876eea047dc6126e5118378b9"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.5/parse-changelog-aarch64-pc-windows-msvc.tar.gz",
"checksum": "e4f39aef6fe8e233cdac88e5029d785f48805a65ec31c511fbf3200e26ded97e"
}
},
"0.6.4": {
"x86_64_linux_musl": {

View File

@@ -19,7 +19,24 @@
}
},
"latest": {
"version": "0.9.0"
"version": "0.10.0"
},
"0.10": {
"version": "0.10.0"
},
"0.10.0": {
"x86_64_linux_musl": {
"checksum": "6c881ab0698e4e6ea235245f22832860544f17ba386442fe7e9d629f8cbedf87"
},
"x86_64_macos": {
"checksum": "ef27684f23279d112d8ad84e0823642e43f838993bbb8c0963db9b58a90464c2"
},
"x86_64_windows": {
"checksum": "eb6cd53a54ea97a56540e9d296ce7e2fa68715aa507ff23574646c1e12b2e143"
},
"aarch64_linux_musl": {
"checksum": "324a7e89de8fa2aed0d0c28f3dab59cf84c6d74264022c00c22af665ed1a09bb"
}
},
"0.9": {
"version": "0.9.0"

23
manifests/syft.json generated
View File

@@ -23,13 +23,30 @@
}
},
"latest": {
"version": "1.0.0"
"version": "1.0.1"
},
"1": {
"version": "1.0.0"
"version": "1.0.1"
},
"1.0": {
"version": "1.0.0"
"version": "1.0.1"
},
"1.0.1": {
"x86_64_linux_musl": {
"checksum": "420f90e57def27745e414efcb7a41384b2ccdccafca87c327096ca44621ab0ce"
},
"x86_64_macos": {
"checksum": "3730868e23a65c0c2b94bd1d3c7ce608176aa98b631bf98249f04bec1a035b12"
},
"x86_64_windows": {
"checksum": "95bc151e3a713a31f7ae7bfacbe0bda8c8d8e08e390038b0c2fc7220c1b9c49c"
},
"aarch64_linux_musl": {
"checksum": "c8582aa0e1c92c84c4a751c739ac3d7ca48c88a54b5d1b884d0629d7df72a6f9"
},
"aarch64_macos": {
"checksum": "5dc061290afb7e8249dc590fcf4a7e15966346e73948415559855e1154fc0f42"
}
},
"1.0.0": {
"x86_64_linux_musl": {

View File

@@ -43,10 +43,27 @@
}
},
"latest": {
"version": "0.2.91"
"version": "0.2.92"
},
"0.2": {
"version": "0.2.91"
"version": "0.2.92"
},
"0.2.92": {
"x86_64_linux_musl": {
"checksum": "c6e43a3bf0be5231e0b72ea702f73b3f4f47c309037e8a332c5c2e41800ca934"
},
"x86_64_macos": {
"checksum": "1091b40f5e2cc67d10deb3b1260a92b97cef8851f2588708c2d4b6bef9444880"
},
"x86_64_windows": {
"checksum": "a23d556b35bc4d17222e324b205a1b66b1cdad630f62a1190ba6c42cf5ed2af7"
},
"aarch64_linux_gnu": {
"checksum": "ae6070b6f6a86160f9be02ee9c913820814825f6e8aff45b155a129a36acc0cb"
},
"aarch64_macos": {
"checksum": "9ac857faddd4368e5ad3f41b74bbc4c2d32c3726d008bd5760fc52c7c6843e48"
}
},
"0.2.91": {
"x86_64_linux_musl": {

View File

@@ -15,7 +15,8 @@ trap 's=$?; echo >&2 "$0: error on line "${LINENO}": ${BASH_COMMAND}"; exit ${s}
# - shfmt
# - shellcheck
# - npm
# - jq and yq
# - jq
# - python
# - rustup (if Rust code exists)
# - clang-format (if C/C++ code exists)
#
@@ -53,6 +54,11 @@ error() {
fi
should_fail=1
}
venv() {
local bin="$1"
shift
"${venv_bin}/${bin}${exe}" "$@"
}
if [[ $# -gt 0 ]]; then
cat <<EOF
@@ -204,32 +210,54 @@ if [[ -n "$(git ls-files '*.yml' '*.js' '*.json')" ]]; then
# Check GitHub workflows.
if [[ -d .github/workflows ]]; then
info "checking GitHub workflows"
if type -P jq &>/dev/null && type -P yq &>/dev/null; then
for workflow in .github/workflows/*.yml; do
# The top-level permissions must be weak as they are referenced by all jobs.
permissions=$(yq -c '.permissions' "${workflow}")
case "${permissions}" in
'{"contents":"read"}' | '{"contents":"none"}') ;;
null) error "${workflow}: top level permissions not found; it must be 'contents: read' or weaker permissions" ;;
*) error "${workflow}: only 'contents: read' and weaker permissions are allowed at top level; if you want to use stronger permissions, please set job-level permissions" ;;
esac
# Make sure the 'needs' section is not out of date.
if grep -q '# tidy:needs' "${workflow}" && ! grep -Eq '# *needs: \[' "${workflow}"; then
# shellcheck disable=SC2207
jobs_actual=($(yq '.jobs' "${workflow}" | jq -r 'keys_unsorted[]'))
unset 'jobs_actual[${#jobs_actual[@]}-1]'
# shellcheck disable=SC2207
jobs_expected=($(yq -r '.jobs."ci-success".needs[]' "${workflow}"))
if [[ "${jobs_actual[*]}" != "${jobs_expected[*]+"${jobs_expected[*]}"}" ]]; then
printf -v jobs '%s, ' "${jobs_actual[@]}"
sed -i "s/needs: \[.*\] # tidy:needs/needs: [${jobs%, }] # tidy:needs/" "${workflow}"
check_diff "${workflow}"
error "${workflow}: please update 'needs' section in 'ci-success' job"
fi
if type -P jq &>/dev/null; then
if type -P python3 &>/dev/null || type -P python &>/dev/null; then
py_suffix=''
if type -P python3 &>/dev/null; then
py_suffix='3'
fi
done
exe=''
venv_bin='.venv/bin'
case "$(uname -s)" in
MINGW* | MSYS* | CYGWIN* | Windows_NT)
exe='.exe'
venv_bin='.venv/Scripts'
;;
esac
if [[ ! -d .venv ]]; then
"python${py_suffix}" -m venv .venv
fi
if [[ ! -e "${venv_bin}/yq${exe}" ]]; then
venv "pip${py_suffix}" install yq
fi
for workflow in .github/workflows/*.yml; do
# The top-level permissions must be weak as they are referenced by all jobs.
permissions=$(venv yq -c '.permissions' "${workflow}")
case "${permissions}" in
'{"contents":"read"}' | '{"contents":"none"}') ;;
null) error "${workflow}: top level permissions not found; it must be 'contents: read' or weaker permissions" ;;
*) error "${workflow}: only 'contents: read' and weaker permissions are allowed at top level; if you want to use stronger permissions, please set job-level permissions" ;;
esac
# Make sure the 'needs' section is not out of date.
if grep -q '# tidy:needs' "${workflow}" && ! grep -Eq '# *needs: \[' "${workflow}"; then
# shellcheck disable=SC2207
jobs_actual=($(venv yq '.jobs' "${workflow}" | jq -r 'keys_unsorted[]'))
unset 'jobs_actual[${#jobs_actual[@]}-1]'
# shellcheck disable=SC2207
jobs_expected=($(venv yq -r '.jobs."ci-success".needs[]' "${workflow}"))
if [[ "${jobs_actual[*]}" != "${jobs_expected[*]+"${jobs_expected[*]}"}" ]]; then
printf -v jobs '%s, ' "${jobs_actual[@]}"
sed -i "s/needs: \[.*\] # tidy:needs/needs: [${jobs%, }] # tidy:needs/" "${workflow}"
check_diff "${workflow}"
error "${workflow}: please update 'needs' section in 'ci-success' job"
fi
fi
done
else
warn "'python3' is not installed; skipped GitHub workflow check"
fi
else
warn "'jq' or 'yq' is not installed; skipped GitHub workflow check"
warn "'jq' is not installed; skipped GitHub workflow check"
fi
fi
fi