This is an automated email from the ASF dual-hosted git repository. sunchao pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/arrow-datafusion-comet.git
The following commit(s) were added to refs/heads/main by this push: new a07cce3 build: Fix mvn cache for containerized runners (#48) a07cce3 is described below commit a07cce3335b9718f0f00d786532ab1d47d6f4749 Author: advancedxy <xian...@apache.org> AuthorDate: Wed Feb 21 02:03:51 2024 +0800 build: Fix mvn cache for containerized runners (#48) --- .github/actions/java-test/action.yaml | 12 +++++++----- .github/actions/rust-test/action.yaml | 10 ++++++---- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/actions/java-test/action.yaml b/.github/actions/java-test/action.yaml index 1b4075a..6c3af79 100644 --- a/.github/actions/java-test/action.yaml +++ b/.github/actions/java-test/action.yaml @@ -27,17 +27,19 @@ runs: - name: Cache Maven dependencies uses: actions/cache@v4 with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + path: | + ~/.m2/repository + /root/.m2/repository + key: ${{ runner.os }}-java-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | - ${{ runner.os }}-maven- + ${{ runner.os }}-java-maven- - name: Run Maven compile shell: bash run: | - ./mvnw compile test-compile scalafix:scalafix -Psemanticdb + ./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb - name: Run tests shell: bash run: | - SPARK_HOME=`pwd` ./mvnw clean install + SPARK_HOME=`pwd` ./mvnw -B clean install diff --git a/.github/actions/rust-test/action.yaml b/.github/actions/rust-test/action.yaml index 2b4ec36..b66b639 100644 --- a/.github/actions/rust-test/action.yaml +++ b/.github/actions/rust-test/action.yaml @@ -40,16 +40,18 @@ runs: - name: Cache Maven dependencies uses: actions/cache@v4 with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + path: | + ~/.m2/repository + /root/.m2/repository + key: ${{ runner.os }}-rust-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | - ${{ runner.os }}-maven- + ${{ runner.os }}-rust-maven- - name: Build common module (pre-requisite for Rust tests) shell: bash run: | cd common - ../mvnw clean compile -DskipTests + ../mvnw -B clean compile -DskipTests - name: Run Cargo test shell: bash