-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (29 loc) · 963 Bytes
/
release.yml
File metadata and controls
33 lines (29 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: jsonata-cli release build
on: workflow_dispatch
jobs:
build:
name: jsonata-cli on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, macos-aarch64, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
java-version: '20'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Build with Maven
run: |
mvn package
- name: Build native image
run: |
native-image --pgo=native/default.iprof -jar target/jsonata-cli-*-jar-with-dependencies.jar -H:ReflectionConfigurationFiles=native/reflect-config.json -o jsonata
./jsonata
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: jsonata-cli-${{ matrix.os }}
path: jsonata*