From c41880066456d9c6d9ddf7ecf7fe7b2772bb2718 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 3 Jul 2026 18:24:55 +0800 Subject: [PATCH] Fix: Install curl and sudo first, then use apt without sudo --- .github/workflows/build-debug.yml | 7 ++++--- .github/workflows/build.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index f2099ec..1ee9f51 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -19,12 +19,13 @@ jobs: steps: - name: Setup Node.js (required for actions) run: | - curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - - sudo apt-get install -y nodejs + 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: | - sudo apt-get install -y git-lfs + 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 f68a178..91ddb0f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,12 +53,13 @@ jobs: steps: - name: Setup Node.js (required for actions) run: | - curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - - sudo apt-get install -y nodejs + 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: | - sudo apt-get install -y git-lfs + apt-get install -y git-lfs git lfs install git lfs pull