diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2b7fa7625c6..2638509c0a42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,11 +61,11 @@ jobs: - name: Maven Checks run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" - $RETRY $MAVEN clean verify -B --strict-checksums -V -T C1 -DskipTests -P ci -pl '!:trino-server-rpm' + $RETRY $MAVEN clean install -B --strict-checksums -V -T C1 -DskipTests -P ci -pl '!:trino-server-rpm' - name: Test Server RPM run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" - $RETRY bash -c "$MAVEN verify -B --strict-checksums -P ci -pl :trino-server-rpm || find core/trino-server-rpm/ -exec ls -ald {} +" + $RETRY $MAVEN verify -B --strict-checksums -P ci -pl :trino-server-rpm - name: Clean Maven Output run: $MAVEN clean -pl '!:trino-server,!:trino-cli' - uses: docker/setup-qemu-action@v1 @@ -73,6 +73,10 @@ jobs: platforms: arm64,ppc64le - name: Test Docker Image run: core/docker/build.sh + - name: Clean local Maven repo + # Avoid caching artifacts built in this job, cache should only include dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: rm -rf ~/.m2/repository/io/trino/trino-* check-commits: runs-on: ubuntu-latest