-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47fe0ff
commit e32c0ec
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build GraalVM Java App with Maven | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up GraalVM 17 | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '20' | ||
distribution: 'graalvm' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn -s settings.xml -q clean package -Pnative -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -B -V | ||
- name: Copy artifacts to target | ||
run: | | ||
cp target/backend-proxy-1.0-SNAPSHOT-runner target/dist/application | ||
cp -R $GRAALVM_HOME/jre/lib/amd64 target/dist/lib | ||
cp $GRAALVM_HOME/jre/lib/security/cacerts target/dist/cacerts | ||
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive | ||
- name: Update dependency graph | ||
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 |