Skip to content

Commit 3836047

Browse files
Add build for win-aarch64
1 parent 99e9c9e commit 3836047

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,26 @@ jobs:
103103
- name: Run Gradle Build
104104
run: ./gradlew build -Ptarget=${{ matrix.target }}
105105

106+
windows-aarch64:
107+
name: Build aarch64-pc-windows-msvc
108+
runs-on: windows-11-arm
109+
steps:
110+
- name: Checkout sources
111+
uses: actions/checkout@v6
112+
- name: Install Rust toolchain
113+
uses: dtolnay/rust-toolchain@stable
114+
with:
115+
toolchain: stable
116+
target: aarch64-pc-windows-msvc
117+
- name: Set up JDK
118+
uses: actions/setup-java@v5
119+
with:
120+
distribution: 'microsoft'
121+
java-version: '17'
122+
cache: 'gradle'
123+
- name: Run Gradle Build
124+
run: ./gradlew build -Ptarget=aarch64-pc-windows-msvc
125+
106126
macos:
107127
name: Build macOS universal binary
108128
runs-on: macos-14

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
export PATH="/opt/musl/${{ matrix.arch }}-linux-musl-cross/bin:$PATH"
9292
./gradlew native:publish native:jreleaserDeploy -Ptarget=${{ matrix.target }}
9393
94+
9495
windows:
9596
strategy:
9697
matrix:
@@ -124,6 +125,33 @@ jobs:
124125
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
125126
run: ./gradlew native:publish native:jreleaserDeploy -Ptarget=${{ matrix.target }}
126127

128+
windows-aarch64:
129+
name: Publish aarch64-pc-windows-msvc
130+
environment: MavenRelease
131+
runs-on: windows-11-arm
132+
steps:
133+
- name: Checkout sources
134+
uses: actions/checkout@v6
135+
- name: Install Rust toolchain
136+
uses: dtolnay/rust-toolchain@stable
137+
with:
138+
toolchain: stable
139+
target: aarch64-pc-windows-msvc
140+
- name: Set up JDK
141+
uses: actions/setup-java@v5
142+
with:
143+
distribution: 'temurin'
144+
java-version: '17'
145+
cache: 'gradle'
146+
- name: Build and Publish
147+
env:
148+
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.MAVENCENTRAL_USERNAME }}
149+
JRELEASER_MAVENCENTRAL_TOKEN: ${{ secrets.MAVENCENTRAL_TOKEN }}
150+
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
151+
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
152+
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
153+
run: ./gradlew native:publish native:jreleaserDeploy -Ptarget=aarch64-pc-windows-msvc
154+
127155
macos:
128156
name: Build macOS universal binary
129157
environment: MavenRelease

0 commit comments

Comments
 (0)