Created
February 12, 2021 21:06
-
-
Save StefanOltmann/88db983d47cd654827cda3e289e6dff7 to your computer and use it in GitHub Desktop.
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: GraalVM Native Image build | |
on: | |
push: | |
branches: [ '*' ] | |
tags: [ '*' ] | |
jobs: | |
buildOnWindows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ilammy/msvc-dev-cmd@v1.5.0 | |
- uses: microsoft/setup-msbuild@v1 | |
- uses: ayltai/setup-graalvm@v1 | |
with: | |
java-version: 11 | |
graalvm-version: 20.3.0 | |
native-image: true | |
- name: Build with Gradle | |
run: gradle buildNative | |
- uses: actions/upload-artifact@v2 | |
with: | |
if-no-files-found: warn | |
name: package-windows | |
path: build/*-runner.exe | |
buildOnLinux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ayltai/setup-graalvm@v1 | |
with: | |
java-version: 11 | |
graalvm-version: 20.3.0 | |
native-image: true | |
- name: Build with Gradle | |
run: gradle build -Dquarkus.package.type=native | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: package-linux | |
path: build/*-runner | |
buildOnMac: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ayltai/setup-graalvm@v1 | |
with: | |
java-version: 11 | |
graalvm-version: 20.3.0 | |
native-image: true | |
- name: Build with Gradle | |
run: gradle build -Dquarkus.package.type=native | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: package-macos | |
path: build/*-runner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment