diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 920502e6..15790801 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,7 +92,20 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - lfs: true + + - name: Create LFS file hash list + run: git -C third_party/silabs/gecko_sdk lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + + - name: Restore gecko_sdk LFS cache + uses: actions/cache@v2 + id: lfs-cache + with: + path: .git/modules/third_party/silabs/gecko_sdk/lfs + key: lfs-${{ hashFiles('.lfs-assets-id') }} + + - name: Git LFS Pull + run: git -C third_party/silabs/gecko_sdk lfs pull + - uses: actions/setup-java@v3 with: distribution: 'temurin' # See 'Supported distributions' for available options