From db5d622cf409629fc08ae52ea5b42d75d5c59b65 Mon Sep 17 00:00:00 2001 From: Fu Chen Date: Wed, 16 Aug 2023 02:02:10 +0800 Subject: [PATCH 1/3] disable maven cache --- .github/workflows/sbt.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/sbt.yml b/.github/workflows/sbt.yml index 5f35361b37d..5967a48dda4 100644 --- a/.github/workflows/sbt.yml +++ b/.github/workflows/sbt.yml @@ -45,7 +45,6 @@ jobs: with: distribution: zulu java-version: ${{ matrix.java }} - cache: maven check-latest: false - name: Test Service with SBT run: | @@ -74,7 +73,6 @@ jobs: with: distribution: zulu java-version: ${{ matrix.java }} - cache: maven check-latest: false - name: Test with SBT run: | @@ -117,7 +115,6 @@ jobs: with: distribution: zulu java-version: ${{ matrix.java }} - cache: maven check-latest: false - name: Test with SBT run: | @@ -149,7 +146,6 @@ jobs: with: distribution: zulu java-version: ${{ matrix.java }} - cache: maven check-latest: false - name: Test with SBT run: | From 0d97d92f19ede8e8d562a5e7c38d2f51ee59d3ff Mon Sep 17 00:00:00 2001 From: Fu Chen Date: Wed, 16 Aug 2023 10:37:43 +0800 Subject: [PATCH 2/3] cache sbt deps --- .github/workflows/sbt.yml | 68 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/.github/workflows/sbt.yml b/.github/workflows/sbt.yml index 5967a48dda4..8fc9cd56897 100644 --- a/.github/workflows/sbt.yml +++ b/.github/workflows/sbt.yml @@ -40,6 +40,23 @@ jobs: - 17 steps: - uses: actions/checkout@v2 + # Cache local repositories. Note that GitHub Actions cache has a 2G limit. + - name: Cache SBT + uses: actions/cache@v3 + with: + path: | + build/*.jar + ~/.sbt + key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} + restore-keys: | + build- + - name: Cache Coursier local repository + uses: actions/cache@v3 + with: + path: ~/.cache/coursier + key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} + restore-keys: | + ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: @@ -68,6 +85,23 @@ jobs: - '2.4' steps: - uses: actions/checkout@v2 + # Cache local repositories. Note that GitHub Actions cache has a 2G limit. + - name: Cache SBT + uses: actions/cache@v3 + with: + path: | + build/*.jar + ~/.sbt + key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} + restore-keys: | + build- + - name: Cache Coursier local repository + uses: actions/cache@v3 + with: + path: ~/.cache/coursier + key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} + restore-keys: | + ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: @@ -110,6 +144,23 @@ jobs: spark: '3.2' steps: - uses: actions/checkout@v2 + # Cache local repositories. Note that GitHub Actions cache has a 2G limit. + - name: Cache SBT + uses: actions/cache@v3 + with: + path: | + build/*.jar + ~/.sbt + key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} + restore-keys: | + build- + - name: Cache Coursier local repository + uses: actions/cache@v3 + with: + path: ~/.cache/coursier + key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} + restore-keys: | + ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: @@ -141,6 +192,23 @@ jobs: - '1.17' steps: - uses: actions/checkout@v2 + # Cache local repositories. Note that GitHub Actions cache has a 2G limit. + - name: Cache SBT + uses: actions/cache@v3 + with: + path: | + build/*.jar + ~/.sbt + key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} + restore-keys: | + build- + - name: Cache Coursier local repository + uses: actions/cache@v3 + with: + path: ~/.cache/coursier + key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} + restore-keys: | + ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: From eb8fe2bbcb685df04060711d5a0a298fb465c476 Mon Sep 17 00:00:00 2001 From: Fu Chen Date: Wed, 16 Aug 2023 10:54:08 +0800 Subject: [PATCH 3/3] Revert "cache sbt deps" This reverts commit 0d97d92f19ede8e8d562a5e7c38d2f51ee59d3ff. --- .github/workflows/sbt.yml | 68 --------------------------------------- 1 file changed, 68 deletions(-) diff --git a/.github/workflows/sbt.yml b/.github/workflows/sbt.yml index 8fc9cd56897..5967a48dda4 100644 --- a/.github/workflows/sbt.yml +++ b/.github/workflows/sbt.yml @@ -40,23 +40,6 @@ jobs: - 17 steps: - uses: actions/checkout@v2 - # Cache local repositories. Note that GitHub Actions cache has a 2G limit. - - name: Cache SBT - uses: actions/cache@v3 - with: - path: | - build/*.jar - ~/.sbt - key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} - restore-keys: | - build- - - name: Cache Coursier local repository - uses: actions/cache@v3 - with: - path: ~/.cache/coursier - key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} - restore-keys: | - ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: @@ -85,23 +68,6 @@ jobs: - '2.4' steps: - uses: actions/checkout@v2 - # Cache local repositories. Note that GitHub Actions cache has a 2G limit. - - name: Cache SBT - uses: actions/cache@v3 - with: - path: | - build/*.jar - ~/.sbt - key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} - restore-keys: | - build- - - name: Cache Coursier local repository - uses: actions/cache@v3 - with: - path: ~/.cache/coursier - key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} - restore-keys: | - ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: @@ -144,23 +110,6 @@ jobs: spark: '3.2' steps: - uses: actions/checkout@v2 - # Cache local repositories. Note that GitHub Actions cache has a 2G limit. - - name: Cache SBT - uses: actions/cache@v3 - with: - path: | - build/*.jar - ~/.sbt - key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} - restore-keys: | - build- - - name: Cache Coursier local repository - uses: actions/cache@v3 - with: - path: ~/.cache/coursier - key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} - restore-keys: | - ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: @@ -192,23 +141,6 @@ jobs: - '1.17' steps: - uses: actions/checkout@v2 - # Cache local repositories. Note that GitHub Actions cache has a 2G limit. - - name: Cache SBT - uses: actions/cache@v3 - with: - path: | - build/*.jar - ~/.sbt - key: build-${{ hashFiles('project/build.properties', 'build/sbt-launch-lib.bash') }} - restore-keys: | - build- - - name: Cache Coursier local repository - uses: actions/cache@v3 - with: - path: ~/.cache/coursier - key: ${{ matrix.java }}-coursier-${{ hashFiles('project/**', '**/plugins.sbt') }} - restore-keys: | - ${{ matrix.java }}-coursier- - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v2 with: