Skip to content

use JGit 7.2.0 and Jetty 12 versions #15

use JGit 7.2.0 and Jetty 12 versions

use JGit 7.2.0 and Jetty 12 versions #15

Workflow file for this run

name: Maven native image build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build on ${{ matrix.os }} with Java ${{ matrix.java-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [17, 21]
graalvm-distribution: ['graalvm-community']
fail-fast: false
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up GraalVM ${{ matrix.graalvm-distribution }} for Java ${{ matrix.java-version }}
uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.graalvm-distribution }}
cache: 'maven'
- name: Report Java version
run: |
java -version
javac -version
- name: Build with Maven Wrapper (Linux)
run: ./mvnw -V -B package
if: runner.os == 'Linux'
- name: Build with Maven Wrapper (Windows)
run: .\mvnw.cmd -V -B package
if: runner.os == 'Windows'
- name: Package Linux artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: JGitHttpServer ${{ runner.os }} native image with SubstrateVM for Java ${{ matrix.java-version }}
path: target/JGitHttpServer
- name: Package Windows artifacts
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: JGitHttpServer ${{ runner.os }} native image with SubstrateVM for Java ${{ matrix.java-version }}
path: target/JGitHttpServer.exe