From cecdbd1b01665d115fb8a690a2098306ceb8a3d0 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 3 Jul 2026 18:53:40 +0800 Subject: [PATCH] Fix: Install Git LFS before checkout, pull LFS files after checkout --- .github/workflows/build-debug.yml | 12 +++++++----- .github/workflows/build.yml | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 3dacca5..f0bf125 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -20,11 +20,8 @@ jobs: options: --user root steps: - - name: Setup Git LFS - run: | - apt-get update && apt-get install -y git-lfs - git lfs install - git lfs pull + - name: Install Git LFS + run: apt-get update && apt-get install -y git-lfs - name: Checkout repository uses: actions/checkout@v4 @@ -32,6 +29,11 @@ jobs: submodules: recursive fetch-depth: 0 + - name: Pull Git LFS files + run: | + git lfs install + git lfs pull + - name: Set up JDK 17 uses: actions/setup-java@v4 with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28be3a9..395006b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,11 +54,8 @@ jobs: options: --user root steps: - - name: Setup Git LFS - run: | - apt-get update && apt-get install -y git-lfs - git lfs install - git lfs pull + - name: Install Git LFS + run: apt-get update && apt-get install -y git-lfs - name: Checkout repository uses: actions/checkout@v4 @@ -66,6 +63,11 @@ jobs: submodules: recursive fetch-depth: 0 + - name: Pull Git LFS files + run: | + git lfs install + git lfs pull + - name: Set up JDK 17 uses: actions/setup-java@v4 with: