update to use JGit 6.10.0 version #12
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
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@v3 | |
- 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 }} | |
- 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@v3 | |
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@v3 | |
with: | |
name: JGitHttpServer ${{ runner.os }} native image with SubstrateVM for Java ${{ matrix.java-version }} | |
path: target/JGitHttpServer.exe | |