-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
52 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,52 @@ | ||
# CI with maven build and scan | ||
|
||
name: CI docker build native mac | ||
|
||
on: | ||
# Trigger analysis when pushing in master or pull requests, and when creating | ||
# a pull request. | ||
push: | ||
branches: | ||
- graal | ||
- macos | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
docker: | ||
runs-on: macos-latest | ||
steps: | ||
|
||
- uses: actions/checkout@main | ||
with: | ||
# Shallow clones should be disabled for a better relevancy of analysis | ||
fetch-depth: 0 | ||
|
||
- name: Echo ref name trigger | ||
run: echo ${{ github.ref_name }} | ||
|
||
- uses: graalvm/setup-graalvm@main | ||
with: | ||
java-version: '21' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
native-image-job-reports: 'true' | ||
|
||
- name: Cache Maven packages | ||
uses: actions/cache@main | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Build and analyze | ||
run: mvn install -Dnative -Dquarkus.native.container-build=true | ||
|
||
- name: Build and analyze | ||
run: cp target/*-runner application | ||
|
||
- name: Upload binary | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: application | ||
path: application |