diff --git a/.github/workflows/ios-commit-snapshots.yml b/.github/workflows/ios-commit-snapshots.yml index 081391d50..feffa812f 100644 --- a/.github/workflows/ios-commit-snapshots.yml +++ b/.github/workflows/ios-commit-snapshots.yml @@ -13,8 +13,6 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - with: - lfs: true - uses: actions/setup-java@v1 with: java-version: '11' diff --git a/.github/workflows/ios-test.yml b/.github/workflows/ios-test.yml index 8bd179e15..939af2289 100644 --- a/.github/workflows/ios-test.yml +++ b/.github/workflows/ios-test.yml @@ -10,8 +10,6 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - with: - lfs: true - uses: actions/setup-java@v1 with: java-version: '11' @@ -40,8 +38,16 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 + - name: Create LFS file list + run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + - name: Restore LFS cache + uses: actions/cache@v2 + id: lfs-cache with: - lfs: true + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + - name: Git LFS Pull + run: git lfs pull - uses: actions/setup-java@v1 with: java-version: '11' @@ -70,8 +76,6 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - with: - lfs: true - uses: actions/setup-java@v1 with: java-version: '11' @@ -100,8 +104,6 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - with: - lfs: true - uses: actions/setup-java@v1 with: java-version: '11'