File tree Expand file tree Collapse file tree 6 files changed +198
-17
lines changed
Expand file tree Collapse file tree 6 files changed +198
-17
lines changed Original file line number Diff line number Diff 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.)
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
1221env :
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 }}
You can’t perform that action at this time.
0 commit comments