mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-28 08:01:15 +00:00
Bumps the github-actions group with 3 updates in the / directory: [taiki-e/install-action](https://github.com/taiki-e/install-action), [actions/setup-java](https://github.com/actions/setup-java) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token). Updates `taiki-e/install-action` from 2.90.3 to 2.90.6 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/taiki-e/install-action/releases">taiki-e/install-action's releases</a>.</em></p> <blockquote> <h2>2.90.6</h2> <ul> <li> <p>Update <code>wasmtime@latest</code> to 50.0.2.</p> </li> <li> <p>Update <code>vacuum@latest</code> to 0.41.0.</p> </li> <li> <p>Update <code>uv@latest</code> to 0.13.9.</p> </li> <li> <p>Update <code>tombi@latest</code> to 1.11.3.</p> </li> <li> <p>Update <code>syft@latest</code> to 1.57.2.</p> </li> <li> <p>Update <code>prek@latest</code> to 0.5.11.</p> </li> <li> <p>Update <code>mise@latest</code> to 2026.11.9.</p> </li> <li> <p>Update <code>kingfisher@latest</code> to 2.19.1.</p> </li> <li> <p>Update <code>dprint@latest</code> to 0.65.0.</p> </li> <li> <p>Update <code>cargo-machete@latest</code> to 0.10.1.</p> </li> <li> <p>Update <code>cargo-deny@latest</code> to 0.21.0.</p> </li> <li> <p>Update <code>biome@latest</code> to 2.6.8.</p> </li> </ul> <h2>2.90.5</h2> <ul> <li> <p>Update <code>mise@latest</code> to 2026.11.8.</p> </li> <li> <p>Update <code>cargo-nextest@latest</code> to 0.9.152.</p> </li> </ul> <h2>2.90.4</h2> <ul> <li> <p>Update <code>yq@latest</code> to 4.54.3.</p> </li> <li> <p>Update <code>vacuum@latest</code> to 0.40.1.</p> </li> <li> <p>Update <code>uv@latest</code> to 0.13.8.</p> </li> <li> <p>Update <code>typos@latest</code> to 1.52.2.</p> </li> <li> <p>Update <code>tombi@latest</code> to 1.11.2.</p> </li> <li> <p>Update <code>syft@latest</code> to 1.57.1.</p> </li> <li> <p>Update <code>rafn@latest</code> to 0.1.7.</p> </li> <li> <p>Update <code>osv-scanner@latest</code> to 2.7.1.</p> </li> <li> <p>Update <code>mise@latest</code> to 2026.11.7.</p> </li> <li> <p>Update <code>knope@latest</code> to 0.24.0.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md">taiki-e/install-action's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <p>All notable changes to this project will be documented in this file.</p> <p>This project adheres to <a href="https://semver.org">Semantic Versioning</a>.</p> <!-- raw HTML omitted --> <h2>[Unreleased]</h2> <h2>[2.90.10] - 2026-11-25</h2> <ul> <li>Update <code>sccache@latest</code> to 0.20.1.</li> </ul> <h2>[2.90.9] - 2026-11-25</h2> <ul> <li> <p>Update <code>zizmor@latest</code> to 1.33.1.</p> </li> <li> <p>Update <code>vacuum@latest</code> to 0.42.3.</p> </li> <li> <p>Update <code>sccache@latest</code> to 0.20.0.</p> </li> <li> <p>Update <code>mise@latest</code> to 2026.11.14.</p> </li> <li> <p>Update <code>kingfisher@latest</code> to 2.20.0.</p> </li> <li> <p>Update <code>kache@latest</code> to 2.3.0.</p> </li> <li> <p>Update <code>grcov@latest</code> to 0.10.9.</p> </li> <li> <p>Update <code>cosign@latest</code> to 3.1.5.</p> </li> <li> <p>Update <code>cargo-xwin@latest</code> to 0.24.1.</p> </li> <li> <p>Update <code>cargo-minimal-versions@latest</code> to 0.1.39.</p> </li> <li> <p>Update <code>cargo-deny@latest</code> to 0.22.1.</p> </li> <li> <p>Update <code>cargo-binstall@latest</code> to 1.28.0.</p> </li> <li> <p>Update <code>biome@latest</code> to 2.6.9.</p> </li> </ul> <h2>[2.90.8] - 2026-11-21</h2> <ul> <li> <p>Update <code>wasmtime@latest</code> to 51.0.0.</p> </li> <li> <p>Update <code>mise@latest</code> to 2026.11.11.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/taiki-e/install-action/commit/75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f"><code>75a7c0f</code></a> Release 2.90.6</li> <li><a href="https://github.com/taiki-e/install-action/commit/d04c1db9f0036db5ae78ba77fd50a545815d9c93"><code>d04c1db</code></a> Update wasmtime manifest</li> <li><a href="https://github.com/taiki-e/install-action/commit/94c5e7660ec7b649e9382a62ea835bb188f1aaec"><code>94c5e76</code></a> Update <code>wasmtime@latest</code> to 50.0.2</li> <li><a href="https://github.com/taiki-e/install-action/commit/4d35baa8f44b392095ac00a8bf58e29eae6a6724"><code>4d35baa</code></a> Update <code>vacuum@latest</code> to 0.41.0</li> <li><a href="https://github.com/taiki-e/install-action/commit/6ce999b39840502b341ee06d43927d9de65a6963"><code>6ce999b</code></a> Update <code>uv@latest</code> to 0.13.9</li> <li><a href="https://github.com/taiki-e/install-action/commit/e413e8e561a2388e37e3a0f27e54a957865ee075"><code>e413e8e</code></a> Update trunk manifest</li> <li><a href="https://github.com/taiki-e/install-action/commit/75d77757ea2cac3a47980f1c18fe19e071567c17"><code>75d7775</code></a> Update <code>tombi@latest</code> to 1.11.3</li> <li><a href="https://github.com/taiki-e/install-action/commit/e201dcce9fde4a2c8cfd773a63b9a2a349b36f2f"><code>e201dcc</code></a> Update <code>syft@latest</code> to 1.57.2</li> <li><a href="https://github.com/taiki-e/install-action/commit/f7b1c482ff6790c7f345006f8dd2de83bf214ddd"><code>f7b1c48</code></a> Update <code>prek@latest</code> to 0.5.11</li> <li><a href="https://github.com/taiki-e/install-action/commit/384d202751979e5b06f32ac3172bbddfe2d08699"><code>384d202</code></a> Update <code>mise@latest</code> to 2026.11.9</li> <li>Additional commits viewable in <a href="https://github.com/taiki-e/install-action/compare/cfdb7ed4ccc7c7dce37759eae89dc5674b469b39...75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f">compare view</a></li> </ul> </details> <br /> Updates `actions/setup-java` from 6.2.0 to 6.3.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/setup-java/releases">actions/setup-java's releases</a>.</em></p> <blockquote> <h2>v6.3.0</h2> <h2>Behavior change: Java problem matcher is now opt-in</h2> <p>Starting with v6.3.0, <code>setup-java</code> no longer registers the Java problem matcher by default (<a href="https://redirect.github.com/actions/setup-java/issues/1326">#1326</a>, fixes <a href="https://redirect.github.com/actions/setup-java/issues/1322">#1322</a>). Java compiler warnings, compiler errors, and uncaught exceptions are no longer turned into annotations on pull request diffs unless you opt in.</p> <p>To keep annotations, set <code>problem-matcher: true</code>:</p> <pre lang="yaml"><code>- uses: actions/setup-java@v6 with: distribution: temurin java-version: '25' problem-matcher: true </code></pre> <p>Compiler output still appears in the build logs, and compilation errors still fail the build. Only annotations are affected.</p> <p><strong>Why:</strong> inline annotations cluttered pull request reviews, and GitHub Actions caps annotations at 10 errors, 10 warnings, and 10 notices per step, and 50 per job. Larger Java builds therefore showed only a truncated subset of their diagnostics as annotations. See <a href="https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#java-problem-matcher-compiler-annotations">Java problem matcher (compiler annotations)</a>.</p> <h2>What's Changed</h2> <ul> <li>Architecture validation for JDK file installs by <a href="https://github.com/v-mahabaleshwars"><code>@v-mahabaleshwars</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/1324">actions/setup-java#1324</a></li> <li>chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/setup-java/pull/1323">actions/setup-java#1323</a></li> <li>Add Microsoft OpenJDK 25.0.5.0.2 support by <a href="https://github.com/brunoborges"><code>@brunoborges</code></a> with <a href="https://github.com/Copilot"><code>@Copilot</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/1320">actions/setup-java#1320</a></li> <li>Fix JetBrains Runtime hotfix version selection by <a href="https://github.com/brunoborges"><code>@brunoborges</code></a> with <a href="https://github.com/Copilot"><code>@Copilot</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/1321">actions/setup-java#1321</a></li> <li>Make Java problem matcher opt-in (default problem-matcher to false) by <a href="https://github.com/brunoborges"><code>@brunoborges</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/1326">actions/setup-java#1326</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/setup-java/compare/v6.2.0...v6.3.0">https://github.com/actions/setup-java/compare/v6.2.0...v6.3.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/setup-java/commit/d1374f8ac74474200d16ef8ecee22c7ae7a51880"><code>d1374f8</code></a> Make Java problem matcher opt-in (<a href="https://redirect.github.com/actions/setup-java/issues/1326">#1326</a>)</li> <li><a href="https://github.com/actions/setup-java/commit/5fb63c9bc97316aca87b7eae68a3404a62579dd7"><code>5fb63c9</code></a> Fix JetBrains Runtime hotfix version selection (<a href="https://redirect.github.com/actions/setup-java/issues/1321">#1321</a>)</li> <li><a href="https://github.com/actions/setup-java/commit/a1bf0b5568e6a2d842b3426fa2d47b4cf0ad5d1b"><code>a1bf0b5</code></a> Add Microsoft OpenJDK 25.0.5.0.2 support (<a href="https://redirect.github.com/actions/setup-java/issues/1320">#1320</a>)</li> <li><a href="https://github.com/actions/setup-java/commit/a3c80683014bc0e5a1aa6bf9fa3a1d2b32a593a0"><code>a3c8068</code></a> chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 (<a href="https://redirect.github.com/actions/setup-java/issues/1323">#1323</a>)</li> <li><a href="https://github.com/actions/setup-java/commit/9ce5b12cb90c06fc1b0e3343c3e65bb977578591"><code>9ce5b12</code></a> Architecture validation for JDK file installs (<a href="https://redirect.github.com/actions/setup-java/issues/1324">#1324</a>)</li> <li>See full diff in <a href="https://github.com/actions/setup-java/compare/77dd5b2ce225ea11469928ac317850245a74ae78...d1374f8ac74474200d16ef8ecee22c7ae7a51880">compare view</a></li> </ul> </details> <br /> Updates `actions/create-github-app-token` from 3.3.0 to 3.4.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/create-github-app-token/releases">actions/create-github-app-token's releases</a>.</em></p> <blockquote> <h2>v3.4.0</h2> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0">3.4.0</a> (2026-11-18)</h2> <h3>Features</h3> <ul> <li>bump actions/setup-node from 6 to 7 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>) (<a href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56">09c1ab7</a>)</li> <li>bump actions/stale from 10 to 11 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>) (<a href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5">679345a</a>)</li> <li>bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the github-actions group (<a href="https://redirect.github.com/actions/create-github-app-token/issues/408">#408</a>) (<a href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3">660c44c</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump undici (<a href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>) (<a href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7">18e9994</a>)</li> </ul> <h2>v3.4.0-beta</h2> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0-beta">3.4.0-beta</a> (2026-11-17)</h2> <h3>Features</h3> <ul> <li>support GitHub Actions OIDC authentication (<a href="https://redirect.github.com/actions/create-github-app-token/issues/411">#411</a>) (<a href="https://github.com/actions/create-github-app-token/commit/8240f10d3ae05b4d450da83e8e247111a36eaf2c">8240f10</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md">actions/create-github-app-token's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0">3.4.0</a> (2026-11-18)</h2> <h3>Features</h3> <ul> <li>bump actions/setup-node from 6 to 7 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>) (<a href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56">09c1ab7</a>)</li> <li>bump actions/stale from 10 to 11 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>) (<a href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5">679345a</a>)</li> <li>bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the github-actions group (<a href="https://redirect.github.com/actions/create-github-app-token/issues/408">#408</a>) (<a href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3">660c44c</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump undici (<a href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>) (<a href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7">18e9994</a>)</li> </ul> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.2.0...v3.3.0">3.3.0</a> (2026-10-12)</h2> <h3>Features</h3> <ul> <li>update permission inputs (<a href="https://redirect.github.com/actions/create-github-app-token/issues/399">#399</a>) (<a href="https://github.com/actions/create-github-app-token/commit/a47236f79f79fcbc3532af49fe3a5ded89529b6e">a47236f</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump nested undici from 6.24.0 to 6.29.0 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/403">#403</a>) (<a href="https://github.com/actions/create-github-app-token/commit/12461a3a794e67c032f1eff5bb95ece9427eb4fb">12461a3</a>)</li> <li><strong>deps:</strong> bump the production-dependencies group across 1 directory with 3 updates (<a href="https://redirect.github.com/actions/create-github-app-token/issues/395">#395</a>) (<a href="https://github.com/actions/create-github-app-token/commit/a69c19ddfdf8e1ab093900e0064524ce9309c807">a69c19d</a>)</li> </ul> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.1.1...v3.2.0">3.2.0</a> (2026-05-12)</h2> <h3>Features</h3> <ul> <li>add support for enterprise-level GitHub Apps (<a href="https://redirect.github.com/actions/create-github-app-token/issues/263">#263</a>) (<a href="https://github.com/actions/create-github-app-token/commit/952a2a7073df6bfa5f49bc469ec895b6ec1acea4">952a2a7</a>)</li> <li>support full repository names in <code>repositories</code> input (<a href="https://redirect.github.com/actions/create-github-app-token/issues/372">#372</a>) (<a href="https://github.com/actions/create-github-app-token/commit/85eb8dd41472213aed25d1a126460e0069138ab6">85eb8dd</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump <code>@actions/core</code> from 3.0.0 to 3.0.1 in the production-dependencies group (<a href="https://redirect.github.com/actions/create-github-app-token/issues/364">#364</a>) (<a href="https://github.com/actions/create-github-app-token/commit/43e5c345bfd4d4f3ecea019ad0042001a09dd857">43e5c34</a>)</li> <li>validate private-key input (<a href="https://redirect.github.com/actions/create-github-app-token/issues/376">#376</a>) (<a href="https://github.com/actions/create-github-app-token/commit/f24bbd89643991c0de27ae823c01791b2c6bafdd">f24bbd8</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/create-github-app-token/commit/f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc"><code>f418cff</code></a> chore(main): release 3.4.0 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/415">#415</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56"><code>09c1ab7</code></a> feat: bump actions/setup-node from 6 to 7 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/01b8009bd6d3d8cce95b612d9793c2b76ef46ee3"><code>01b8009</code></a> test: strip ANSI escape codes from snapshot output (<a href="https://redirect.github.com/actions/create-github-app-token/issues/412">#412</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/e05686484174f08cd73b6c67321c77132a9ace91"><code>e056864</code></a> build(deps-dev): bump undici from 8.12.3 to 8.12.4 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/416">#416</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5"><code>679345a</code></a> feat: bump actions/stale from 10 to 11 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3"><code>660c44c</code></a> feat: bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the gi...</li> <li><a href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7"><code>18e9994</code></a> fix(deps): bump undici (<a href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>)</li> <li>See full diff in <a href="https://github.com/actions/create-github-app-token/compare/64ab729a6294000f5aa4a4bc0b73d1f32bc45510...f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
593 lines
24 KiB
YAML
593 lines
24 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
types: ["labeled", "unlabeled", "opened", "synchronize", "reopened"]
|
|
merge_group:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
RUSTFLAGS: -Dwarnings
|
|
RUSTDOCFLAGS: -Dwarnings
|
|
MSRV: "1.91"
|
|
SCCACHE_CACHE_SIZE: "10G"
|
|
IROH_FORCE_STAGING_RELAYS: "1"
|
|
|
|
# Default to read-only; jobs that need more grant it explicitly.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
tests:
|
|
name: CI Test Suite
|
|
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
|
|
uses: "$/.github/workflows/tests.yaml"
|
|
|
|
min-crates:
|
|
name: Min Crates
|
|
uses: "n0-computer/workflows/.github/workflows/minimal-crates.yaml@v2"
|
|
|
|
cross_build:
|
|
name: Cross Build Only
|
|
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
|
|
timeout-minutes: 30
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
env:
|
|
RUSTFLAGS: "-Dwarnings --cfg skip_patchbay"
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
# cross tests are currently broken vor armv7 and aarch64
|
|
# see https://github.com/cross-rs/cross/issues/1311
|
|
# - armv7-linux-androideabi
|
|
# - aarch64-linux-android
|
|
# Freebsd execution fails in cross
|
|
# - i686-unknown-freebsd # Linking fails :/
|
|
- x86_64-unknown-freebsd
|
|
# Netbsd execution fails to link in cross
|
|
# - x86_64-unknown-netbsd
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
submodules: recursive
|
|
|
|
- name: Install rust stable
|
|
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Cleanup Docker
|
|
continue-on-error: true
|
|
run: |
|
|
docker kill $(docker ps -q)
|
|
|
|
# See https://github.com/cross-rs/cross/issues/1222
|
|
- name: Cache cross
|
|
id: cache-cross
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
path: ~/.cargo/bin/cross
|
|
key: cross-${{ runner.os }}-${{ runner.arch }}
|
|
|
|
- name: Install cross
|
|
if: steps.cache-cross.outputs.cache-hit != 'true'
|
|
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
|
|
with:
|
|
tool: cross
|
|
|
|
- name: build
|
|
# cross tests are currently broken vor armv7 and aarch64
|
|
# see https://github.com/cross-rs/cross/issues/1311. So on
|
|
# those platforms we only build but do not run tests.
|
|
run: cross build --all --target ${{ matrix.target }}
|
|
env:
|
|
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
|
|
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: cc
|
|
|
|
android:
|
|
name: Android Build & Test
|
|
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
|
|
timeout-minutes: 30
|
|
runs-on: [self-hosted, linux, X64]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- target: aarch64-linux-android
|
|
- target: armv7-linux-androideabi
|
|
- target: x86_64-linux-android
|
|
api-level: 35
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Enable KVM for nested virtualization
|
|
if: matrix.target == 'x86_64-linux-android'
|
|
run: |
|
|
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666"' \
|
|
| sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
|
sudo udevadm control --reload-rules
|
|
sudo udevadm trigger --name-match=kvm
|
|
|
|
- name: Set up Rust
|
|
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: stable
|
|
target: ${{ matrix.target }}
|
|
|
|
- name: Setup Java
|
|
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
|
|
with:
|
|
distribution: "temurin"
|
|
java-version: "17"
|
|
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
|
|
|
|
# Pinned to a release tag (rather than @main) for supply-chain hygiene.
|
|
- name: Setup Android NDK
|
|
uses: nttld/setup-ndk@ed92fe6cadad69be94a966a7ee3271275e62f779 # v1.6.0
|
|
id: setup-ndk
|
|
with:
|
|
ndk-version: r25c
|
|
add-to-path: true
|
|
|
|
- name: Install cargo-ndk
|
|
run: cargo install --locked --version 4.1.2 cargo-ndk
|
|
|
|
# Replace cargo-ndk-runner with a wrapper that forwards RUST_LOG
|
|
# and RUST_BACKTRACE into the emulator shell. The upstream binary
|
|
# does `adb shell <bin>` without inheriting any host env.
|
|
#
|
|
# The wrapper also removes each binary from the guest once it has run.
|
|
# A full run pushes ~1.25GB of debug test binaries into /data/local/tmp
|
|
# and the guest data partition is only ~5.8GB, so leaving them behind
|
|
# accumulates across jobs (see the sweep in the emulator script below).
|
|
- name: Wrap cargo-ndk-runner to forward logging env
|
|
if: matrix.target == 'x86_64-linux-android'
|
|
run: |
|
|
cat > "$(which cargo-ndk-runner)" <<'WRAPPER'
|
|
#!/bin/sh
|
|
set -e
|
|
dev=/data/local/tmp/$(basename "$1")
|
|
adb push "$1" "$dev" >/dev/null
|
|
adb shell chmod 755 "$dev"
|
|
shift
|
|
set +e
|
|
adb shell "RUST_LOG=$RUST_LOG RUST_BACKTRACE=$RUST_BACKTRACE $dev $*"
|
|
rc=$?
|
|
adb shell rm -f "$dev" >/dev/null 2>&1
|
|
exit $rc
|
|
WRAPPER
|
|
chmod +x "$(which cargo-ndk-runner)"
|
|
|
|
- name: Build
|
|
if: matrix.target != 'x86_64-linux-android'
|
|
env:
|
|
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
|
run: cargo ndk --target ${{ matrix.target }} build --locked
|
|
|
|
# Build all the test binaries up front so the emulator boot can
|
|
# overlap with compilation. cargo-ndk runs `cargo test --no-run`
|
|
# against each crate; the binaries land in
|
|
# target/$CARGO_NDK_TARGET/debug/deps/.
|
|
- name: Build workspace test binaries
|
|
if: matrix.target == 'x86_64-linux-android'
|
|
env:
|
|
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
|
CARGO_NDK_TARGET: ${{ matrix.target }}
|
|
run: |
|
|
cargo ndk test --locked --no-run -p iroh-base --all-features
|
|
cargo ndk test --locked --no-run -p iroh-dns --features tls-ring
|
|
cargo ndk test --locked --no-run -p iroh-relay --features tls-ring,metrics
|
|
cargo ndk test --locked --no-run -p iroh --features tls-ring,metrics,portmapper,test-utils
|
|
|
|
- name: Run workspace tests on Android emulator
|
|
if: matrix.target == 'x86_64-linux-android'
|
|
timeout-minutes: 30
|
|
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
|
|
env:
|
|
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
|
# Forwarded into the emulator by the cargo-ndk-runner wrapper.
|
|
RUST_LOG: trace
|
|
RUST_BACKTRACE: "1"
|
|
CARGO_NDK_TARGET: ${{ matrix.target }}
|
|
with:
|
|
api-level: ${{ matrix.api-level }}
|
|
arch: x86_64
|
|
target: google_apis
|
|
force-avd-creation: false
|
|
# `-dns-server` + `-netfast` + `-no-metrics` is the combination reported to give
|
|
# working public-internet connectivity on the GH-hosted runner; without them wlan0
|
|
# stays NO-CARRIER and every connect() to a public IP fails with ENETUNREACH.
|
|
# See https://github.com/ReactiveCircus/android-emulator-runner/issues/348#issuecomment-2578082030
|
|
#
|
|
# `-no-snapshot`: on persistent self-hosted runners the AVD survives between jobs,
|
|
# so the emulator quickboot-resumes from the previous run's snapshot. Resumed guests
|
|
# have broken networking (UDP DNS times out), failing DNS tests. Always cold boot
|
|
# and never save state.
|
|
emulator-options: -no-window -no-audio -no-boot-anim -gpu swiftshader_indirect -dns-server 8.8.8.8 -netfast -no-metrics -no-snapshot
|
|
disable-animations: true
|
|
script: |
|
|
adb wait-for-device
|
|
# Wait for full boot and a working outbound TCP. `sys.boot_completed=1` fires
|
|
# before the radio/Wi-Fi stack comes up, and `ip route get 8.8.8.8` reports
|
|
# success while the kernel's per-network fwmark route is still missing. Probe
|
|
# an actual TCP connect to 8.8.8.8:53 instead - it exercises the same path
|
|
# the test sockets will use.
|
|
adb shell 'i=0; while [ -z "$(getprop sys.boot_completed | tr -d "\r")" ]; do i=$((i+1)); if [ $i -gt 300 ]; then exit 1; fi; sleep 2; done'
|
|
adb shell 'i=0; while ! nc -w 2 8.8.8.8 53 </dev/null >/dev/null 2>&1; do i=$((i+1)); if [ $i -gt 30 ]; then exit 1; fi; sleep 2; done'
|
|
# Disable IPv6: the emulator has site-local + link-local v6 but no global v6
|
|
# route, so connect() to a global v6 address hangs instead of returning ENETUNREACH.
|
|
adb root && adb wait-for-device
|
|
adb shell sysctl -w net.ipv6.conf.all.disable_ipv6=1 || true
|
|
adb shell sysctl -w net.ipv6.conf.default.disable_ipv6=1 || true
|
|
adb shell sysctl -w net.ipv6.conf.lo.disable_ipv6=1 || true
|
|
adb shell ip addr
|
|
# Sweep leftover test binaries out of the guest. `force-avd-creation: false`
|
|
# keeps the AVD between jobs, and `-no-snapshot` only disables the *RAM*
|
|
# quickboot snapshot - the userdata qcow2 overlay still persists on disk. A
|
|
# job that is cancelled or times out leaves its pushed binaries behind, so
|
|
# without this they accumulate until /data (~5.8G) fills and every `adb push`
|
|
# fails with ENOSPC. The runner wrapper deletes binaries as it goes; this
|
|
# catches what it could not.
|
|
adb shell 'rm -rf /data/local/tmp/*' || true
|
|
adb shell df -h /data
|
|
cargo ndk test --locked -p iroh-base --all-features
|
|
cargo ndk test --locked -p iroh-dns --features tls-ring
|
|
cargo ndk test --locked -p iroh-relay --features tls-ring,metrics
|
|
cargo ndk test --locked -p iroh --features tls-ring,metrics,portmapper,test-utils
|
|
|
|
cross_test:
|
|
name: Cross Test
|
|
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
|
|
timeout-minutes: 30
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- i686-unknown-linux-gnu
|
|
env:
|
|
RUSTFLAGS: "-Dwarnings --cfg skip_patchbay"
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
submodules: recursive
|
|
|
|
- name: Install rust stable
|
|
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Cleanup Docker
|
|
continue-on-error: true
|
|
run: |
|
|
docker kill $(docker ps -q)
|
|
|
|
# See https://github.com/cross-rs/cross/issues/1222
|
|
- name: Cache cross
|
|
id: cache-cross
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
path: ~/.cargo/bin/cross
|
|
key: cross-${{ runner.os }}-${{ runner.arch }}
|
|
|
|
- name: Install cross
|
|
if: steps.cache-cross.outputs.cache-hit != 'true'
|
|
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
|
|
with:
|
|
tool: cross
|
|
|
|
- name: test
|
|
run: cross test --all --target ${{ matrix.target }} -- --test-threads=12
|
|
env:
|
|
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG' }}
|
|
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: cc
|
|
|
|
wasm_test:
|
|
name: Build & test wasm32 for browsers
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
env:
|
|
RUSTFLAGS: '--cfg getrandom_backend="wasm_js"'
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup node.js version 22.5 # needed for browser-like websocket API support in node.js
|
|
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: 22.5
|
|
|
|
- name: Install stable toolchain
|
|
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Add wasm target
|
|
run: rustup target add wasm32-unknown-unknown
|
|
|
|
- name: Install wasm-bindgen-test-runner
|
|
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
|
|
with:
|
|
# Match the version of wasm-bindgen used in Cargo.lock
|
|
tool: wasm-bindgen-cli@0.2.128
|
|
|
|
- name: Install wasm-tools
|
|
uses: bytecodealliance/actions/wasm-tools/setup@9152e710e9f7182e4c29ad218e4f335a7b203613 # v1.1.3
|
|
|
|
- name: wasm32 build (iroh-base)
|
|
run: cargo build --locked --target wasm32-unknown-unknown -p iroh-base --all-features
|
|
|
|
- name: wasm32 build (iroh-relay)
|
|
run: cargo build --locked --target wasm32-unknown-unknown -p iroh-relay
|
|
|
|
- name: wasm32 build (iroh)
|
|
run: cargo build --locked --target wasm32-unknown-unknown -p iroh
|
|
|
|
# If the Wasm file contains any 'import "env"' declarations, then
|
|
# some non-Wasm-compatible code made it into the final code.
|
|
- name: Ensure no 'import "env"' in iroh-relay Wasm
|
|
run: |
|
|
! wasm-tools print --skeleton target/wasm32-unknown-unknown/debug/iroh_relay.wasm | grep 'import "env"'
|
|
|
|
- name: Ensure no 'import "env"' in iroh Wasm
|
|
run: |
|
|
! wasm-tools print --skeleton target/wasm32-unknown-unknown/debug/iroh.wasm | grep 'import "env"'
|
|
|
|
- name: Run integration test in wasm
|
|
run: cargo test --locked -p iroh --test integration --target=wasm32-unknown-unknown
|
|
|
|
check_semver:
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
env:
|
|
RUSTC_WRAPPER: "sccache"
|
|
SCCACHE_GHA_ENABLED: "on"
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
- name: Install sccache
|
|
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
continue-on-error: true
|
|
- uses: $/.github/workflows/sccache-probe
|
|
# TODO: Undo after the next release! Works around broken hickroy-server patch release.
|
|
- name: "pin hickory server TODO: remove!"
|
|
run: |
|
|
: "${CARGO_HOME:=$HOME/.cargo}"
|
|
mkdir -p "$CARGO_HOME"
|
|
cat >> "$CARGO_HOME/config.toml" <<EOF
|
|
[patch.crates-io]
|
|
hickory-server = { git = "https://github.com/hickory-dns/hickory-dns", tag = "v0.26.3" }
|
|
EOF
|
|
- name: Check semver
|
|
# uses: obi1kenobi/cargo-semver-checks-action@6b69fcf40e9b5fb17adeb57e4b6ecd020649a239 # v2
|
|
uses: n0-computer/cargo-semver-checks-action@b49de9133f8849bb51cae32c6bdeb19a5c37e61f # feat-baseline
|
|
with:
|
|
package: iroh, iroh-base, iroh-dns, iroh-dns-server, iroh-relay
|
|
|
|
check_external_types:
|
|
timeout-minutes: 30
|
|
name: Check external types in public API
|
|
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
env:
|
|
RUSTC_WRAPPER: "sccache"
|
|
SCCACHE_GHA_ENABLED: "on"
|
|
# The tool drives an internal rustdoc invocation that only emits JSON
|
|
# for the analyzer, so the workflow-wide `-Dwarnings` would just turn
|
|
# unrelated rustdoc lints (e.g. `private-intra-doc-links`) into hard
|
|
# failures here. Clear it for this job.
|
|
RUSTDOCFLAGS: ""
|
|
# Pin to the nightly that the pinned `cargo-check-external-types`
|
|
# release was last tested against. Update both together.
|
|
CARGO_CHECK_EXTERNAL_TYPES_VERSION: "0.5.0"
|
|
TOOLCHAIN: "nightly-2026-03-20"
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: ${{ env.TOOLCHAIN }}
|
|
- name: Install sccache
|
|
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
|
|
- name: Install cargo-check-external-types
|
|
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
|
|
with:
|
|
tool: |
|
|
cargo-make
|
|
cargo-check-external-types@${{ env.CARGO_CHECK_EXTERNAL_TYPES_VERSION }}
|
|
|
|
- name: Check external types
|
|
run: cargo make check-external-types
|
|
- name: Lockfile must not have moved
|
|
# cargo make takes no --locked; assert the lockfile instead.
|
|
run: git diff --exit-code Cargo.lock
|
|
|
|
check_fmt:
|
|
timeout-minutes: 30
|
|
name: Checking fmt
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUSTC_WRAPPER: "sccache"
|
|
SCCACHE_GHA_ENABLED: "on"
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: stable
|
|
components: rustfmt
|
|
- uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
continue-on-error: true
|
|
- uses: $/.github/workflows/sccache-probe
|
|
- uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
|
|
with:
|
|
tool: cargo-make
|
|
- run: cargo make format-check
|
|
- name: Lockfile must not have moved
|
|
# cargo make takes no --locked; assert the lockfile instead.
|
|
run: git diff --exit-code Cargo.lock
|
|
|
|
check_docs:
|
|
timeout-minutes: 30
|
|
name: Checking docs
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
env:
|
|
RUSTC_WRAPPER: "sccache"
|
|
SCCACHE_GHA_ENABLED: "on"
|
|
RUSTDOCFLAGS: --cfg docsrs
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: nightly-2025-10-09
|
|
- name: Install sccache
|
|
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
continue-on-error: true
|
|
- uses: $/.github/workflows/sccache-probe
|
|
|
|
- name: Docs
|
|
run: cargo doc --locked --workspace --all-features --no-deps --document-private-items
|
|
|
|
clippy_check:
|
|
timeout-minutes: 30
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
env:
|
|
RUSTC_WRAPPER: "sccache"
|
|
SCCACHE_GHA_ENABLED: "on"
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: stable
|
|
components: clippy
|
|
- name: Install sccache
|
|
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
continue-on-error: true
|
|
- uses: $/.github/workflows/sccache-probe
|
|
|
|
# TODO: We have a bunch of platform-dependent code so should
|
|
# probably run this job on the full platform matrix
|
|
- name: clippy check (all features)
|
|
run: cargo clippy --locked --workspace --all-features --all-targets --lib --bins --tests --benches --examples
|
|
|
|
- name: clippy check (no features)
|
|
run: cargo clippy --locked --workspace --no-default-features --all-targets --lib --bins --tests --benches --examples
|
|
|
|
- name: clippy check (default features)
|
|
run: cargo clippy --locked --workspace --all-targets --lib --bins --tests --benches --examples
|
|
|
|
check_optional_deps:
|
|
timeout-minutes: 10
|
|
name: Check optional deps are absent without features
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: stable
|
|
- name: Verify optional deps are absent without features
|
|
run: |
|
|
fail=0
|
|
for dep in portmapper igd-next swarm-discovery ring aws-lc-rs; do
|
|
echo "cargo tree --locked -p iroh --no-default-features --edges normal --target all -i $dep";
|
|
output=$(cargo tree --locked -p iroh --no-default-features --edges normal --target all -i "$dep" 2>&1) || true
|
|
if ! echo "$output" | grep -qE "(nothing to print|did not match any packages)"; then
|
|
echo "ERROR: $dep should not be in the dependency tree without its feature"
|
|
echo "$output"
|
|
fail=1
|
|
fi
|
|
done
|
|
exit $fail
|
|
|
|
msrv:
|
|
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
|
|
timeout-minutes: 30
|
|
name: Minimal Supported Rust Version
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
env:
|
|
RUSTC_WRAPPER: "sccache"
|
|
SCCACHE_GHA_ENABLED: "on"
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
with:
|
|
toolchain: ${{ env.MSRV }}
|
|
- name: Install sccache
|
|
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
continue-on-error: true
|
|
- uses: $/.github/workflows/sccache-probe
|
|
|
|
- name: Check MSRV all features
|
|
run: |
|
|
cargo +$MSRV check --locked --workspace --all-targets
|
|
|
|
cargo_deny:
|
|
name: cargo deny
|
|
uses: "n0-computer/workflows/.github/workflows/cargo-deny.yaml@v2"
|
|
|
|
netsim-integration-tests:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write # netsim_runner posts the report comment
|
|
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
|
|
uses: "$/.github/workflows/netsim_runner.yaml"
|
|
secrets:
|
|
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
|
|
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
|
S3_BUCKET: ${{ secrets.S3_BUCKET }}
|
|
S3_REPORT_BUCKET: ${{ secrets.S3_REPORT_BUCKET }}
|
|
METRO_TOKEN: ${{ secrets.METRO_TOKEN }}
|
|
METRO_ENDPOINT: ${{ secrets.METRO_ENDPOINT }}
|
|
with:
|
|
branch: ${{ github.ref }}
|
|
max_workers: 6
|
|
netsim_branch: "main"
|
|
sim_paths: ${{ github.event_name == 'pull_request' && 'sims/integration' || 'sims/iroh/iroh.json,sims/integration' }}
|
|
pr_number: ${{ github.event.pull_request.number || '' }}
|
|
filter: ${{ github.event_name == 'pull_request' && 'skip:intg_iroh_full__1_to_3,intg_iroh_full__1_to_1x3,intg_iroh_relay_only__1_to_3' || '' }}
|
|
|
|
codespell:
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Cache pip
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: pip-codespell-2.4.1
|
|
- run: pip install --user codespell[toml]==2.4.1
|
|
- run: codespell --ignore-words-list=ans,atmost,crate,inout,ratatui,ser,stayin,swarmin,worl,keep-alives --skip=CHANGELOG.md
|