Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build :: disabled cache-to for pull requests #816

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
java_compiler=${{ matrix.java-compiler }}
verify_build=${{ matrix.verify-build }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: ${{ github.event_name == 'push' && 'type=gha,mode=max' || '' }}

centos7-build:
name: Centos7 legacy build on Java 11 with compiler target 11
Expand All @@ -73,7 +73,7 @@ jobs:
target_os=centos7
verify_build=false
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: ${{ github.event_name == 'push' && 'type=gha,mode=max' || '' }}

macos-build:
name: MacOS non-standard build on Java 11 with compiler target 11
Expand Down
4 changes: 3 additions & 1 deletion contrib/docker/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ RUN git init --quiet \
&& git commit --quiet -am.

ARG java_compiler=11
ARG maven_phases='clean verify'
ARG maven_profiles='-Pdist'
RUN --mount=type=cache,uid=${uid},gid=${gid},target=/home/${user}/.m2 \
mvn -V -B -e -ntp "-Dstyle.color=always" -Dmaven.compiler.release=${java_compiler} clean verify -Pdist
mvn -V -B -e -ntp "-Dstyle.color=always" -Dmaven.compiler.release=${java_compiler} ${maven_phases} ${maven_profiles}

ARG verify_build=false
RUN if ${verify_build} ; then ./contrib/ci/detect-changes.sh ; fi
Expand Down