Skip to content

Commit e0ab6d7

Browse files
committed
feat: Implement Windows ARM build
1 parent 3af8741 commit e0ab6d7

File tree

6 files changed

+198
-17
lines changed

6 files changed

+198
-17
lines changed

.config/hakari.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ platforms = [
2121
# "x86_64-apple-darwin",
2222
"aarch64-apple-darwin",
2323
"x86_64-pc-windows-msvc",
24+
"aarch64-pc-windows-msvc",
2425
]
2526

2627
# Write out exact versions rather than a semver range. (Defaults to false.)

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ jobs:
106106
runner: macos-latest
107107
- target: x86_64-pc-windows-msvc
108108
runner: windows-latest
109+
- target: aarch64-pc-windows-msvc
110+
runner: windows-latest
109111
permissions:
110112
contents: read
111113
steps:
@@ -172,6 +174,8 @@ jobs:
172174
runner: macos-latest
173175
- target: x86_64-pc-windows-msvc
174176
runner: windows-latest
177+
- target: aarch64-pc-windows-msvc
178+
runner: windows-latest
175179
runs-on: ${{ matrix.settings.runner }}
176180
env:
177181
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
@@ -249,6 +253,8 @@ jobs:
249253
runner: macos-latest
250254
- target: x86_64-pc-windows-msvc
251255
runner: windows-latest
256+
- target: aarch64-pc-windows-msvc
257+
runner: windows-latest
252258
runs-on: ${{ matrix.settings.runner }}
253259
steps:
254260
- name: Checkout
@@ -278,7 +284,7 @@ jobs:
278284
run: cargo check --all --release
279285

280286
- name: Run Clippy
281-
if: ${{ matrix.settings.target == 'aarch64-apple-darwin' || matrix.settings.target == 'x86_64-pc-windows-msvc' }}
287+
if: ${{ matrix.settings.target == 'aarch64-apple-darwin' || matrix.settings.target == 'x86_64-pc-windows-msvc' || matrix.settings.target == 'aarch64-pc-windows-msvc' }}
282288
uses: actions-rs-plus/clippy-check@v2
283289
with:
284290
args: --workspace --all-features --locked

.github/workflows/publish.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ on:
88
description: "Discord Interaction ID"
99
required: false
1010
type: string
11+
windowsTarget:
12+
description: "Windows build target"
13+
required: false
14+
default: all
15+
type: choice
16+
options:
17+
- all
18+
- x64
19+
- arm64
1120

1221
env:
1322
CN_APPLICATION: cap/cap
@@ -129,7 +138,13 @@ jobs:
129138
130139
build:
131140
needs: draft
132-
if: ${{ needs.draft.outputs.needs_release == 'true' }}
141+
if: ${{
142+
needs.draft.outputs.needs_release == 'true' && (
143+
matrix.settings.platform != 'windows' ||
144+
inputs.windowsTarget == 'all' ||
145+
inputs.windowsTarget == matrix.settings.arch
146+
)
147+
}}
133148
permissions:
134149
contents: write
135150
actions: read
@@ -139,10 +154,20 @@ jobs:
139154
settings:
140155
- target: x86_64-apple-darwin
141156
runner: macos-latest-xlarge
157+
platform: macos
158+
arch: x64
142159
- target: aarch64-apple-darwin
143160
runner: macos-latest-xlarge
161+
platform: macos
162+
arch: arm64
144163
- target: x86_64-pc-windows-msvc
145164
runner: windows-latest
165+
platform: windows
166+
arch: x64
167+
- target: aarch64-pc-windows-msvc
168+
runner: windows-latest
169+
platform: windows
170+
arch: arm64
146171
env:
147172
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
148173
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

Cargo.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)