diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index e6a64c70..fc4e99a4 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -29,10 +29,18 @@ jobs: - name: Checkout codes uses: actions/checkout@v2 with: - lfs: true submodules: recursive - - name: Checkout LFS - run: git lfs checkout + - name: Checkout LFS file list + run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id + - name: LFS Cache + uses: actions/cache@v3 + with: + path: .git/lfs/objects + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} + restore-keys: | + ${{ runner.os }}-lfs- + - name: Git LFS Pull + run: git lfs pull - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e82d2426..358394d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,18 @@ jobs: - name: Checkout codes uses: actions/checkout@v2 with: - lfs: true submodules: recursive - - name: Checkout LFS - run: git lfs checkout + - name: Checkout LFS file list + run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id + - name: LFS Cache + uses: actions/cache@v3 + with: + path: .git/lfs/objects + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} + restore-keys: | + ${{ runner.os }}-lfs- + - name: Git LFS Pull + run: git lfs pull - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: