From 589ebf1255faa5b05cc73fe04d9cd0d041d92978 Mon Sep 17 00:00:00 2001 From: flik Date: Sat, 27 Dec 2025 00:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/build.yam?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9ea2bce..357888d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -83,6 +83,17 @@ jobs: target: client upx: true steps: + - name: Install Node.js for Actions + run: | + # 尝试兼容 Alpine (apk) 和 Debian/Ubuntu (apt) + if command -v apk > /dev/null; then + apk add --no-cache nodejs + elif command -v apt-get > /dev/null; then + apt-get update && apt-get install -y nodejs + else + echo "Unknown package manager" + exit 1 + fi - name: Checkout code uses: actions/checkout@v4