Skip to content

Commit 200e62f

Browse files
committed
feat: update GA and Jreleaser to build and upload MacOS-arm64
executables
1 parent a212e32 commit 200e62f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ on:
1111

1212
jobs:
1313
build:
14-
name: Migtool build
14+
name: Migtool build for ${{matrix.os}}
1515
if: "!contains(github.event.head_commit.message, '[ci skip]')"
16-
runs-on: ubuntu-latest
16+
runs-on: ${{matrix.os}}
1717
timeout-minutes: 90
1818
strategy:
1919
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest, macos-latest]
2022

2123
steps:
2224
- name: Environment
@@ -42,17 +44,17 @@ jobs:
4244
uses: actions/upload-artifact@v4
4345
if: failure()
4446
with:
45-
name: linux-test-reports
47+
name: ${{matrix.os}}-test-reports
4648
path: build/reports/tests/test/
4749
overwrite: true
4850

4951
- name: Build Native Image
5052
run: ./gradlew nativeCompile
5153

52-
- name: Upload linux native image artifact
54+
- name: Upload ${{matrix.os}} native image artifact
5355
uses: actions/upload-artifact@v4
5456
with:
55-
name: migtool-linux
57+
name: migtool-${{matrix.os}}
5658
path: build/native/nativeCompile/migtool
5759
overwrite: true
5860

@@ -65,7 +67,7 @@ jobs:
6567
uses: actions/upload-artifact@v4
6668
if: failure()
6769
with:
68-
name: linux-testsNative-reports
70+
name: ${{matrix.os}}-testsNative-reports
6971
path: build/reports/tests/nativeCliTest/
7072
overwrite: true
7173

jreleaser.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ distributions:
7676
migtool:
7777
type: NATIVE_IMAGE
7878
artifacts:
79-
- path: "migtool-linux/migtool"
79+
- path: "migtool-ubuntu-latest/migtool"
8080
transform: "{{distributionName}}-linux-x86_64"
8181
platform: linux-x86_64
82+
- path: "migtool-macos-latest/migtool"
83+
transform: "{{distributionName}}-macos-arm64"
84+
platform: osx-aarch_64

0 commit comments

Comments
 (0)