ci: musl node 托管为自家 release 资产(同机房快),不再拉 unofficial-builds
This commit is contained in:
1 parent
272525cd34
commit
8940fbfdc8
1 file changed
+4
-4
@@ -12,9 +12,9 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
# npmmirror 的 node 镜像只有 glibc 构建;Alpine(musl) 用 unofficial-builds 的 musl 版
|
||||
NODE_DIST: https://unofficial-builds.nodejs.org/download/release
|
||||
NODE_VERSION: v20.19.5
|
||||
# musl 构建托管在自家 release 资产(tag ci-node-v20.19.5-musl)——runner 同机房拉取快;
|
||||
# 原始来源 unofficial-builds(npmmirror 无 musl)
|
||||
NODE_DIST: https://gitea.idealjs.com/attachments/07df24de-1408-4042-8db6-8a64848e2791
|
||||
YARN_NPM_REGISTRY_SERVER: https://registry.npmmirror.com
|
||||
|
||||
jobs:
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
steps:
|
||||
- name: Install portable node (host 无 node,无 docker)
|
||||
run: |
|
||||
wget -q "$NODE_DIST/$NODE_VERSION/node-$NODE_VERSION-linux-x64-musl.tar.xz" -O /tmp/node.tar.xz
|
||||
wget -q "$NODE_DIST" -O /tmp/node.tar.xz
|
||||
mkdir -p "$RUNNER_TEMP/node"
|
||||
tar -xJf /tmp/node.tar.xz -C "$RUNNER_TEMP/node" --strip-components=1
|
||||
echo "$RUNNER_TEMP/node/bin" >> "$GITHUB_PATH"
|
||||
|
||||
Reference in new issue
Block a user