Skip to content

Commit 8ec190b

Browse files
committed
chore: Add release workflow
1 parent 6fc9c57 commit 8ec190b

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "v*"
9+
10+
jobs:
11+
build:
12+
name: Build Native Image
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
deploy: [
17+
{ os: macOS-13, name: jindo-x86_64-apple-darwin.zip },
18+
{ os: macOS-14, name: jindo-aarch64-apple-darwin.zip },
19+
{ os: ubuntu-22.04, name: jindo-x86_64-pc-linux.zip },
20+
{ os: ubuntu-24.04-arm, name: jindo-aarch64-pc-linux.zip },
21+
{ os: windows-2022, name: jindo-x86_64-pc-win32.zip }
22+
]
23+
runs-on: ${{ matrix.deploy.os }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: graalvm/setup-graalvm@v1
27+
with:
28+
java-version: '21'
29+
distribution: 'graalvm'
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
native-image-job-reports: 'true'
32+
- run: sbt graalvm-native-image:packageBin
33+
- name: Upload Artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: ${{ matrix.deploy.asset_name }}
37+
path: target/graalvm-native-image/${{ matrix.deploy.artifact_name }}

0 commit comments

Comments
 (0)