Skip to content

Commit 1c1b9af

Browse files
committed
Add macos build
1 parent 3184ab7 commit 1c1b9af

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

Diff for: .github/workflows/docker_publish_native_macos.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# CI with maven build and scan
2+
3+
name: CI docker build native mac
4+
5+
on:
6+
# Trigger analysis when pushing in master or pull requests, and when creating
7+
# a pull request.
8+
push:
9+
branches:
10+
- graal
11+
- macos
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
docker:
17+
runs-on: macos-latest
18+
steps:
19+
20+
- uses: actions/checkout@main
21+
with:
22+
# Shallow clones should be disabled for a better relevancy of analysis
23+
fetch-depth: 0
24+
25+
- name: Echo ref name trigger
26+
run: echo ${{ github.ref_name }}
27+
28+
- uses: graalvm/setup-graalvm@main
29+
with:
30+
java-version: '21'
31+
distribution: 'graalvm'
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
native-image-job-reports: 'true'
34+
35+
- name: Cache Maven packages
36+
uses: actions/cache@main
37+
with:
38+
path: ~/.m2
39+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
40+
restore-keys: ${{ runner.os }}-m2
41+
42+
- name: Build and analyze
43+
run: mvn install -Dnative -Dquarkus.native.container-build=true
44+
45+
- name: Build and analyze
46+
run: cp target/*-runner application
47+
48+
- name: Upload binary
49+
uses: actions/upload-artifact@main
50+
with:
51+
name: application
52+
path: application

0 commit comments

Comments
 (0)