mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-01 04:02:35 +00:00
fix(ci): install linters on linux/arm64 runners (#15350)
The Linux lanes now route to the ARM64 self-hosted fleet, but the linter bootstrap only mapped linux/x64 (plus both macOS arches), so `--setup` threw "Unsupported platform/architecture: linux/arm64" and every real lint step after it was skipped — the lane was red having checked nothing. Pin the ARM64 builds the two linter steps already know how to unpack: actionlint 1.7.12 linux_arm64 and shellcheck 0.11.0 linux.aarch64, with digests recomputed from the exact release URLs the installer builds.
This commit is contained in:
parent
da1ee5f93d
commit
519bcdd596
1 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ const YAMLLINT_VERSION = '1.35.1';
|
|||
const ACTIONLINT_SHA256 = {
|
||||
linux_amd64:
|
||||
'8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8',
|
||||
linux_arm64:
|
||||
'325e971b6ba9bfa504672e29be93c24981eeb1c07576d730e9f7c8805afff0c6',
|
||||
darwin_amd64:
|
||||
'5b44c3bc2255115c9b69e30efc0fecdf498fdb63c5d58e17084fd5f16324c644',
|
||||
darwin_arm64:
|
||||
|
|
@ -26,6 +28,8 @@ const ACTIONLINT_SHA256 = {
|
|||
const SHELLCHECK_SHA256 = {
|
||||
'linux.x86_64':
|
||||
'8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198',
|
||||
'linux.aarch64':
|
||||
'12b331c1d2db6b9eb13cfca64306b1b157a86eb69db83023e261eaa7e7c14588',
|
||||
'darwin.x86_64':
|
||||
'3c89db4edcab7cf1c27bff178882e0f6f27f7afdf54e859fa041fca10febe4c6',
|
||||
'darwin.aarch64':
|
||||
|
|
@ -126,6 +130,12 @@ function getPlatformArch() {
|
|||
shellcheck: 'linux.x86_64',
|
||||
};
|
||||
}
|
||||
if (platform === 'linux' && arch === 'arm64') {
|
||||
return {
|
||||
actionlint: 'linux_arm64',
|
||||
shellcheck: 'linux.aarch64',
|
||||
};
|
||||
}
|
||||
if (platform === 'darwin' && arch === 'x64') {
|
||||
return {
|
||||
actionlint: 'darwin_amd64',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue