Skip to content

Commit

Permalink
build: update early-access workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Sep 3, 2024
1 parent fa47fe9 commit 6a1a950
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest, macOS-latest, macOS-12, windows-latest ]
setup: [ graalvm ]
include:
- os: ubuntu-latest
setup: java
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout GitHub repository'
Expand All @@ -35,36 +39,46 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1

- name: 'Set up GraalVM'
if: ${{ matrix.setup == 'graalvm' }}
uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.GRAAL_DISTRIBUTION }}
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'

- name: 'Set up Java'
if: ${{ matrix.setup == 'java' }}
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}

- name: 'Build Native Image (Linux)'
if: ${{ runner.os == 'Linux' }}
if: ${{ runner.os == 'Linux' && matrix.setup == 'graalvm' }}
run: |
./mvnw -ntp -B --file pom.xml -Pnative package
- name: 'Build Native Image (macOS)'
if: ${{ runner.os == 'macOS' }}
if: ${{ runner.os == 'macOS' && matrix.setup == 'graalvm' }}
run: |
./mvnw -ntp -B --file pom.xml -Pnative package "-DskipTests"
- name: 'Build Native Image (Windows)'
if: ${{ runner.os == 'windows' }}
if: ${{ runner.os == 'windows' && matrix.setup == 'graalvm' }}
run: |
./mvnw -ntp -B --file pom.xml -Pnative package "-DskipTests"
- name: 'Build Debian Package (Linux)'
if: ${{ runner.os == 'Linux' && matrix.setup == 'graalvm' }}
run: |
./mvnw -ntp -B --file pom.xml -Pdeb package -DskipTests
- name: 'Build Distribution'
if: ${{ runner.os == 'Linux' && matrix.setup == 'java' }}
run: |
./mvnw -ntp -B --file pom.xml -Pdist package -DskipTests
- name: 'Build Debian Package (Linux)'
if: ${{ runner.os == 'Linux' }}
run: |
./mvnw -ntp -B --file pom.xml -Pdeb package -DskipTests
- name: 'Upload build artifact'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 6a1a950

Please sign in to comment.