22
33on :
44 pull_request :
5- types : [ ' labeled', ' unlabeled', ' opened', ' synchronize', ' reopened' ]
5+ types : [" labeled", " unlabeled", " opened", " synchronize", " reopened" ]
66 merge_group :
77 push :
88 branches :
2424 tests :
2525 name : CI Test Suite
2626 if : " github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
27- uses : ' ./.github/workflows/tests.yaml'
27+ uses : " ./.github/workflows/tests.yaml"
2828
2929 cross_build :
3030 name : Cross Build Only
3535 fail-fast : false
3636 matrix :
3737 target :
38- # cross tests are currently broken vor armv7 and aarch64
39- # see https://github.com/cross-rs/cross/issues/1311
38+ # cross tests are currently broken vor armv7 and aarch64
39+ # see https://github.com/cross-rs/cross/issues/1311
4040 # - armv7-linux-androideabi
4141 # - aarch64-linux-android
4242 # Freebsd execution fails in cross
@@ -45,29 +45,29 @@ jobs:
4545 # Netbsd execution fails to link in cross
4646 # - x86_64-unknown-netbsd
4747 steps :
48- - name : Checkout
49- uses : actions/checkout@v5
50- with :
51- submodules : recursive
52-
53- - name : Install rust stable
54- uses : dtolnay/rust-toolchain@stable
55-
56- - name : Cleanup Docker
57- continue-on-error : true
58- run : |
59- docker kill $(docker ps -q)
60-
61- # See https://github.com/cross-rs/cross/issues/1222
62- - uses : taiki-e/install-action@cross
63-
64- - name : build
65- # cross tests are currently broken vor armv7 and aarch64
66- # see https://github.com/cross-rs/cross/issues/1311. So on
67- # those platforms we only build but do not run tests.
68- run : cross build --all --target ${{ matrix.target }}
69- env :
70- RUST_LOG : ${{ runner.debug && 'TRACE' || 'DEBUG'}}
48+ - name : Checkout
49+ uses : actions/checkout@v5
50+ with :
51+ submodules : recursive
52+
53+ - name : Install rust stable
54+ uses : dtolnay/rust-toolchain@stable
55+
56+ - name : Cleanup Docker
57+ continue-on-error : true
58+ run : |
59+ docker kill $(docker ps -q)
60+
61+ # See https://github.com/cross-rs/cross/issues/1222
62+ - uses : taiki-e/install-action@cross
63+
64+ - name : build
65+ # cross tests are currently broken vor armv7 and aarch64
66+ # see https://github.com/cross-rs/cross/issues/1311. So on
67+ # those platforms we only build but do not run tests.
68+ run : cross build --all --target ${{ matrix.target }}
69+ env :
70+ RUST_LOG : ${{ runner.debug && 'TRACE' || 'DEBUG'}}
7171
7272 android_build :
7373 name : Android Build Only
@@ -82,38 +82,38 @@ jobs:
8282 - aarch64-linux-android
8383 - armv7-linux-androideabi
8484 steps :
85- - name : Checkout
86- uses : actions/checkout@v5
87-
88- - name : Set up Rust
89- uses : dtolnay/rust-toolchain@stable
90- with :
91- target : ${{ matrix.target }}
92- - name : Install rustup target
93- run : rustup target add ${{ matrix.target }}
94-
95- - name : Setup Java
96- uses : actions/setup-java@v5
97- with :
98- distribution : ' temurin'
99- java-version : ' 17 '
100-
101- - name : Setup Android SDK
102- uses : android-actions/setup-android@v3
103-
104- - name : Setup Android NDK
105- uses : arqu/setup-ndk@main
106- id : setup-ndk
107- with :
108- ndk-version : r23
109- add-to-path : true
110-
111- - name : Build
112- env :
113- ANDROID_NDK_HOME : ${{ steps.setup-ndk.outputs.ndk-path }}
114- run : |
115- cargo install --version 3.5.4 cargo-ndk
116- cargo ndk --target ${{ matrix.target }} build
85+ - name : Checkout
86+ uses : actions/checkout@v5
87+
88+ - name : Set up Rust
89+ uses : dtolnay/rust-toolchain@stable
90+ with :
91+ target : ${{ matrix.target }}
92+ - name : Install rustup target
93+ run : rustup target add ${{ matrix.target }}
94+
95+ - name : Setup Java
96+ uses : actions/setup-java@v5
97+ with :
98+ distribution : " temurin"
99+ java-version : " 17 "
100+
101+ - name : Setup Android SDK
102+ uses : android-actions/setup-android@v3
103+
104+ - name : Setup Android NDK
105+ uses : arqu/setup-ndk@main
106+ id : setup-ndk
107+ with :
108+ ndk-version : r23
109+ add-to-path : true
110+
111+ - name : Build
112+ env :
113+ ANDROID_NDK_HOME : ${{ steps.setup-ndk.outputs.ndk-path }}
114+ run : |
115+ cargo install --version 3.5.4 cargo-ndk
116+ cargo ndk --target ${{ matrix.target }} build
117117
118118 cross_test :
119119 name : Cross Test
@@ -126,26 +126,26 @@ jobs:
126126 target :
127127 - i686-unknown-linux-gnu
128128 steps :
129- - name : Checkout
130- uses : actions/checkout@v5
131- with :
132- submodules : recursive
129+ - name : Checkout
130+ uses : actions/checkout@v5
131+ with :
132+ submodules : recursive
133133
134- - name : Install rust stable
135- uses : dtolnay/rust-toolchain@stable
134+ - name : Install rust stable
135+ uses : dtolnay/rust-toolchain@stable
136136
137- - name : Cleanup Docker
138- continue-on-error : true
139- run : |
140- docker kill $(docker ps -q)
137+ - name : Cleanup Docker
138+ continue-on-error : true
139+ run : |
140+ docker kill $(docker ps -q)
141141
142- # See https://github.com/cross-rs/cross/issues/1222
143- - uses : taiki-e/install-action@cross
142+ # See https://github.com/cross-rs/cross/issues/1222
143+ - uses : taiki-e/install-action@cross
144144
145- - name : test
146- run : cross test --all --target ${{ matrix.target }} -- --test-threads=1
147- env :
148- RUST_LOG : ${{ runner.debug && 'TRACE' || 'DEBUG' }}
145+ - name : test
146+ run : cross test --all --target ${{ matrix.target }} -- --test-threads=1
147+ env :
148+ RUST_LOG : ${{ runner.debug && 'TRACE' || 'DEBUG' }}
149149
150150 check_semver :
151151 runs-on : ubuntu-latest
@@ -185,13 +185,13 @@ jobs:
185185 RUSTC_WRAPPER : " sccache"
186186 SCCACHE_GHA_ENABLED : " on"
187187 steps :
188- - uses : actions/checkout@v5
189- - uses : dtolnay/rust-toolchain@stable
190- with :
191- components : rustfmt
192- -
uses :
mozilla-actions/[email protected] 193- - uses : taiki-e/install-action@cargo-make
194- - run : cargo make format-check
188+ - uses : actions/checkout@v5
189+ - uses : dtolnay/rust-toolchain@stable
190+ with :
191+ components : rustfmt
192+ -
uses :
mozilla-actions/[email protected] 193+ - uses : taiki-e/install-action@cargo-make
194+ - run : cargo make format-check
195195
196196 check_docs :
197197 timeout-minutes : 30
@@ -201,17 +201,17 @@ jobs:
201201 RUSTC_WRAPPER : " sccache"
202202 SCCACHE_GHA_ENABLED : " on"
203203 steps :
204- - uses : actions/checkout@v5
205- - uses : dtolnay/rust-toolchain@master
206- with :
207- toolchain : nightly-2025-09-28
208- - name : Install sccache
209- uses :
mozilla-actions/[email protected] 210-
211- - name : Docs
212- run : cargo doc --workspace --all-features --no-deps --document-private-items
213- env :
214- RUSTDOCFLAGS : --cfg docsrs
204+ - uses : actions/checkout@v5
205+ - uses : dtolnay/rust-toolchain@master
206+ with :
207+ toolchain : nightly-2025-09-28
208+ - name : Install sccache
209+ uses :
mozilla-actions/[email protected] 210+
211+ - name : Docs
212+ run : cargo doc --workspace --all-features --no-deps --document-private-items
213+ env :
214+ RUSTDOCFLAGS : --cfg docsrs
215215
216216 clippy_check :
217217 timeout-minutes : 30
@@ -220,23 +220,23 @@ jobs:
220220 RUSTC_WRAPPER : " sccache"
221221 SCCACHE_GHA_ENABLED : " on"
222222 steps :
223- - uses : actions/checkout@v5
224- - uses : dtolnay/rust-toolchain@stable
225- with :
226- components : clippy
227- - name : Install sccache
228- uses :
mozilla-actions/[email protected] 223+ - uses : actions/checkout@v5
224+ - uses : dtolnay/rust-toolchain@stable
225+ with :
226+ components : clippy
227+ - name : Install sccache
228+ uses :
mozilla-actions/[email protected] 229229
230- # TODO: We have a bunch of platform-dependent code so should
231- # probably run this job on the full platform matrix
232- - name : clippy check (all features)
233- run : cargo clippy --workspace --all-features --all-targets --bins --tests --benches
230+ # TODO: We have a bunch of platform-dependent code so should
231+ # probably run this job on the full platform matrix
232+ - name : clippy check (all features)
233+ run : cargo clippy --workspace --all-features --all-targets --bins --tests --benches
234234
235- - name : clippy check (no features)
236- run : cargo clippy --workspace --no-default-features --lib --bins --tests
235+ - name : clippy check (no features)
236+ run : cargo clippy --workspace --no-default-features --lib --bins --tests
237237
238- - name : clippy check (default features)
239- run : cargo clippy --workspace --all-targets
238+ - name : clippy check (default features)
239+ run : cargo clippy --workspace --all-targets
240240
241241 msrv :
242242 if : " github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
@@ -247,16 +247,16 @@ jobs:
247247 RUSTC_WRAPPER : " sccache"
248248 SCCACHE_GHA_ENABLED : " on"
249249 steps :
250- - uses : actions/checkout@v5
251- - uses : dtolnay/rust-toolchain@master
252- with :
253- toolchain : ${{ env.MSRV }}
254- - name : Install sccache
255- uses :
mozilla-actions/[email protected] 250+ - uses : actions/checkout@v5
251+ - uses : dtolnay/rust-toolchain@master
252+ with :
253+ toolchain : ${{ env.MSRV }}
254+ - name : Install sccache
255+ uses :
mozilla-actions/[email protected] 256256
257- - name : Check MSRV all features
258- run : |
259- cargo +$MSRV check --workspace --all-targets
257+ - name : Check MSRV all features
258+ run : |
259+ cargo +$MSRV check --workspace --all-targets
260260
261261 cargo_deny :
262262 timeout-minutes : 30
@@ -274,9 +274,9 @@ jobs:
274274 timeout-minutes : 30
275275 runs-on : ubuntu-latest
276276 steps :
277- - uses : actions/checkout@v5
278- - run : pip install --user codespell[toml]
279- - run : codespell --ignore-words-list=ans,atmost,crate,inout,ratatui,ser,stayin,swarmin,worl --skip=CHANGELOG.md
277+ - uses : actions/checkout@v5
278+ - run : pip install --user codespell[toml]
279+ - run : codespell --ignore-words-list=ans,atmost,crate,inout,ratatui,ser,stayin,swarmin,worl --skip=CHANGELOG.md
280280
281281 wasm_build :
282282 name : Build & test wasm32
@@ -314,6 +314,3 @@ jobs:
314314 - name : Ensure no 'import "env"' in wasm
315315 run : |
316316 ! wasm-tools print --skeleton target/wasm32-unknown-unknown/debug/iroh_blobs.wasm | grep 'import "env"'
317-
318- - name : wasm32 test
319- run : wasm-pack test --node
0 commit comments