Skip to content

Commit d60ff85

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

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
include:
8484
- target: x86_64-pc-windows-msvc
8585
- target: i686-pc-windows-msvc
86+
- target: aarch64-pc-windows-gnullvm
8687

8788
name: Build ${{ matrix.target }}
8889
runs-on: windows-2022
@@ -103,6 +104,26 @@ jobs:
103104
- name: Run Gradle Build
104105
run: ./gradlew build -Ptarget=${{ matrix.target }}
105106

107+
windows-aarch64:
108+
name: Build aarch64-pc-windows-msvc
109+
runs-on: windows-11-arm
110+
steps:
111+
- name: Checkout sources
112+
uses: actions/checkout@v6
113+
- name: Install Rust toolchain
114+
uses: dtolnay/rust-toolchain@stable
115+
with:
116+
toolchain: stable
117+
target: aarch64-pc-windows-msvc
118+
- name: Set up JDK
119+
uses: actions/setup-java@v5
120+
with:
121+
distribution: 'temurin'
122+
java-version: '17'
123+
cache: 'gradle'
124+
- name: Run Gradle Build
125+
run: ./gradlew build -Ptarget=aarch64-pc-windows-msvc
126+
106127
macos:
107128
name: Build macOS universal binary
108129
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)