From 606b3aca905d6fb2ca8bf96db7abc2e89052cb3b Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 3 Jul 2026 18:32:24 +0800 Subject: [PATCH] Fix: Use node:20-bullseye container for CI/CD (includes Node.js) --- .github/workflows/build-debug.yml | 11 ++++------- .github/workflows/build.yml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 1ee9f51..3dacca5 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -15,17 +15,14 @@ jobs: build-android-debug: name: Build Android Debug APK runs-on: ubuntu-latest + container: + image: node:20-bullseye + options: --user root steps: - - name: Setup Node.js (required for actions) - run: | - apt-get update && apt-get install -y curl sudo - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - - apt-get install -y nodejs - - name: Setup Git LFS run: | - apt-get install -y git-lfs + apt-get update && apt-get install -y git-lfs git lfs install git lfs pull diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91ddb0f..28be3a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,17 +49,14 @@ jobs: name: Build Android APK runs-on: ubuntu-latest if: ${{ github.event.inputs.build_android != 'false' }} + container: + image: node:20-bullseye + options: --user root steps: - - name: Setup Node.js (required for actions) - run: | - apt-get update && apt-get install -y curl sudo - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - - apt-get install -y nodejs - - name: Setup Git LFS run: | - apt-get install -y git-lfs + apt-get update && apt-get install -y git-lfs git lfs install git lfs pull