Skip to content
Merged
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
17 changes: 9 additions & 8 deletions .github/workflows/build-all-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-13
- os: macos-15-intel
arch: x86_64
java7: true
fullbuild: true
- os: macos-14
arch: aarch64
java7: false
# Build only the native binary for this architecture; it suffices if only one of the macOS builds performs a full Maven build
fullbuild: false
Comment on lines -103 to +104
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is equivalent to the previous build config, I just added a comment and renamed the variable to make it clearer what this does.


steps:
- name: Checkout
Expand All @@ -111,7 +112,7 @@ jobs:

- name: Setup Zulu JDK 7
uses: actions/setup-java@v5
if: ${{ matrix.java7 }}
if: ${{ matrix.fullbuild }}
with:
distribution: zulu
java-version: '7'
Expand All @@ -122,16 +123,16 @@ jobs:
java-version: '21'
cache: maven

- name: Build (process-resources only on macos-14)
if: ${{ matrix.os == 'macos-14' }}
- name: Build (native binary build only)
if: ${{ !matrix.fullbuild }}
run: |
./mvnw -B -V -DskipTests \
-Darch.id=${{ matrix.arch }} \
-Dnative.cc=cc \
process-resources

- name: Build (mvn verify on macos-13)
if: ${{ matrix.os != 'macos-14' }}
- name: Build (full build)
if: ${{ matrix.fullbuild }}
run: |
./mvnw -B -V \
-Darch.id=${{ matrix.arch }} \
Expand Down