-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CI to run GraalVM native build in separate job
- Loading branch information
Showing
1 changed file
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,13 +23,13 @@ on: | |
- master | ||
|
||
jobs: | ||
test: | ||
test-OpenJDK: | ||
name: "JDK ${{ matrix.java }} on ${{ matrix.os }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
java: [GraalVM, 21, 17, 11] | ||
java: [21, 17, 11] | ||
experimental: [false] | ||
include: | ||
# Only test on MacOS and Windows with a single recent JDK to avoid a | ||
|
@@ -43,9 +43,6 @@ jobs: | |
- os: ubuntu-latest | ||
java: EA | ||
experimental: true | ||
- os: ubuntu-latest | ||
java: GraalVM | ||
experimental: false | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
steps: | ||
|
@@ -83,6 +80,31 @@ jobs: | |
- name: "Test" | ||
shell: bash | ||
run: mvn test -B | ||
|
||
test-OpenJDK: | ||
name: "GraalVM on ${{ matrix.os }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
steps: | ||
- name: Cancel previous | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: "Check out repository" | ||
uses: actions/checkout@v4 | ||
- name: "Set up GraalVM ${{ matrix.java }}" | ||
if: ${{ matrix.java == 'GraalVM' }} | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: "21" | ||
distribution: "graalvm-community" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
native-image-job-reports: "true" | ||
cache: "maven" | ||
- name: "Native" | ||
if: ${{ matrix.java == 'GraalVM' }} | ||
run: mvn -Pnative -DskipTests package -pl core -am && util/test-native.sh | ||
|