From 8940fbfdc8364ce7cbe720879fd531e95a04fa21 Mon Sep 17 00:00:00 2001 From: cqh963852 Date: Thu, 8 Oct 2026 14:06:12 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20musl=20node=20=E6=89=98=E7=AE=A1=E4=B8=BA?= =?UTF-8?q?=E8=87=AA=E5=AE=B6=20release=20=E8=B5=84=E4=BA=A7=EF=BC=88?= =?UTF-8?q?=E5=90=8C=E6=9C=BA=E6=88=BF=E5=BF=AB=EF=BC=89=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E6=8B=89=20unofficial-builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-tutorial.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-tutorial.yml b/.gitea/workflows/build-tutorial.yml index 252069b..2d58898 100644 --- a/.gitea/workflows/build-tutorial.yml +++ b/.gitea/workflows/build-tutorial.yml @@ -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"