diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 66c3f89ebbab9..ebe713f3463f1 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -382,11 +382,10 @@ jobs: uses: actions/cache@v5 with: path: ~/.cache/coursier - key: ${{ matrix.java }}-${{ matrix.hadoop }}-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: ${{ runner.os }}-${{ matrix.java }}-${{ matrix.hadoop }}-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - ${{ matrix.java }}-${{ matrix.hadoop }}-coursier- - precompile-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} - precompile-coursier- + ${{ runner.os }}-${{ matrix.java }}-${{ matrix.hadoop }}-coursier- + coursier- - name: Free up disk space run: | if [ -f ./dev/free_disk_space ]; then @@ -616,9 +615,9 @@ jobs: uses: actions/cache@v5 with: path: ~/.cache/coursier - key: precompile-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - precompile-coursier- + coursier- - name: Install Java ${{ inputs.java }} uses: actions/setup-java@v5 with: @@ -738,13 +737,13 @@ jobs: key: build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }} restore-keys: | build- - - name: Cache Coursier local repository - uses: actions/cache@v5 + - name: Restore Coursier local repository + uses: actions/cache/restore@v5 with: path: ~/.cache/coursier - key: pyspark-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - pyspark-coursier- + coursier- - name: Free up disk space shell: 'script -q -e -c "bash {0}"' run: ./dev/free_disk_space_container @@ -888,13 +887,13 @@ jobs: key: build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }} restore-keys: | build- - - name: Cache Coursier local repository - uses: actions/cache@v5 + - name: Restore Coursier local repository + uses: actions/cache/restore@v5 with: path: ~/.cache/coursier - key: sparkr-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - sparkr-coursier- + coursier- - name: Free up disk space run: ./dev/free_disk_space_container - name: Install Java ${{ inputs.java }} @@ -1039,13 +1038,13 @@ jobs: key: build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }} restore-keys: | build- - - name: Cache Coursier local repository - uses: actions/cache@v5 + - name: Restore Coursier local repository + uses: actions/cache/restore@v5 with: path: ~/.cache/coursier - key: docs-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - docs-coursier- + coursier- - name: Cache Maven local repository uses: actions/cache@v5 with: @@ -1238,13 +1237,13 @@ jobs: key: build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }} restore-keys: | build- - - name: Cache Coursier local repository - uses: actions/cache@v5 + - name: Restore Coursier local repository + uses: actions/cache/restore@v5 with: path: ~/.cache/coursier - key: docs-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - docs-coursier- + coursier- - name: Cache Maven local repository uses: actions/cache@v5 with: @@ -1433,15 +1432,13 @@ jobs: key: build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }} restore-keys: | build- - - name: Cache Coursier local repository - uses: actions/cache@v5 + - name: Restore Coursier local repository + uses: actions/cache/restore@v5 with: path: ~/.cache/coursier - key: tpcds-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - tpcds-coursier- - precompile-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} - precompile-coursier- + coursier- - name: Install Java ${{ inputs.java }} uses: actions/setup-java@v5 with: @@ -1553,15 +1550,13 @@ jobs: key: build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }} restore-keys: | build- - - name: Cache Coursier local repository - uses: actions/cache@v5 + - name: Restore Coursier local repository + uses: actions/cache/restore@v5 with: path: ~/.cache/coursier - key: docker-integration-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - docker-integration-coursier- - precompile-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} - precompile-coursier- + coursier- - name: Install Java ${{ inputs.java }} uses: actions/setup-java@v5 with: @@ -1641,15 +1636,13 @@ jobs: key: build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }} restore-keys: | build- - - name: Cache Coursier local repository - uses: actions/cache@v5 + - name: Restore Coursier local repository + uses: actions/cache/restore@v5 with: path: ~/.cache/coursier - key: k8s-integration-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - k8s-integration-coursier- - precompile-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} - precompile-coursier- + coursier- - name: Free up disk space run: | if [ -f ./dev/free_disk_space ]; then diff --git a/.github/workflows/python_hosted_runner_test.yml b/.github/workflows/python_hosted_runner_test.yml index eb0430bfe6c2c..18ef69af09f4b 100644 --- a/.github/workflows/python_hosted_runner_test.yml +++ b/.github/workflows/python_hosted_runner_test.yml @@ -137,9 +137,9 @@ jobs: uses: actions/cache@v5 with: path: ~/.cache/coursier - key: pyspark-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - pyspark-coursier- + coursier- - name: Install Java ${{ matrix.java }} uses: actions/setup-java@v5 with: