Created
January 2, 2023 22:35
-
-
Save devondragon/bce7abba173c41cba23cf87cc875a024 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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 19 | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
version: "22.3.0" | |
java-version: "19" | |
components: "native-image" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: "true" | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 | |
with: | |
arguments: nativeCompile | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Package | |
path: build/native/nativeCompile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment