@@ -200,7 +200,7 @@ jobs:
200200 with :
201201 toolchain : stable
202202 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
203- - uses : taiki-e/install-action@13608cbb45b01feb47ef444ab1a42dc41ad56f1a
203+ - uses : taiki-e/install-action@13608cbb45b01feb47ef444ab1a42dc41ad56f1a
204204 with :
205205 tool : nextest
206206 - run : cargo nextest run --locked --all-features
@@ -326,3 +326,41 @@ jobs:
326326 with :
327327 persist-credentials : false
328328 - uses : EmbarkStudios/cargo-deny-action@a531616d8ce3b9177443e48a1159bc945a099823 # ratchet:EmbarkStudios/cargo-deny-action@v2
329+
330+ build-for-targets :
331+ name : Build for targets
332+ needs : check
333+ runs-on : ${{ matrix.platforms.os }}
334+ continue-on-error : true
335+ permissions :
336+ contents : read
337+ strategy :
338+ matrix :
339+ platforms :
340+ - os : macOS-latest
341+ target : aarch64-apple-darwin
342+ features : " --all-features"
343+ - os : macos-latest-large
344+ target : x86_64-apple-darwin
345+ features : " --all-features"
346+ - os : ubuntu-latest
347+ target : x86_64-unknown-linux-gnu
348+ features : " --all-features"
349+ - os : ubuntu-24.04-arm
350+ target : aarch64-unknown-linux-gnu
351+ features : " --all-features"
352+ - os : windows-latest
353+ target : x86_64-pc-windows-gnu
354+ features : " --all-features"
355+ - os : windows-latest
356+ target : x86_64-pc-windows-msvc
357+ features : " --all-features"
358+ steps :
359+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
360+ with :
361+ persist-credentials : false
362+ - uses : houseabsolute/actions-rust-cross@f481cb5e0110765615313e2177ce12a99bf26bbd # ratchet:houseabsolute/actions-rust-cross@v1
363+ with :
364+ target : ${{ matrix.platforms.target }}
365+ args : " --locked ${{ matrix.platforms.features }}"
366+ strip : false
0 commit comments