Files
iroh/.github/workflows/tests.yaml
T
Workflow config file is invalid. Please check your config file: interpolate runs-on for job "build_and_test_nix": Invalid JSON: invalid character '$' looking for beginning of value
dependabot[bot] 5d8719aa1b chore(deps): bump mozilla-actions/sccache-action from 0.0.9 to 0.0.10 in the github-actions group across 1 directory (#4174)
Bumps the github-actions group with 1 update in the / directory:
[mozilla-actions/sccache-action](https://github.com/mozilla-actions/sccache-action).

Updates `mozilla-actions/sccache-action` from 0.0.9 to 0.0.10
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mozilla-actions/sccache-action/releases">mozilla-actions/sccache-action's
releases</a>.</em></p>
<blockquote>
<h2>v0.0.10</h2>
<h2>What's Changed</h2>
<ul>
<li>Use tar on all platforms by <a
href="https://github.com/brianmichel"><code>@​brianmichel</code></a> in
<a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/193">Mozilla-Actions/sccache-action#193</a></li>
<li>Bump eslint-plugin-prettier from 5.2.3 to 5.2.5 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/196">Mozilla-Actions/sccache-action#196</a></li>
<li>Bump typescript from 5.7.2 to 5.8.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/195">Mozilla-Actions/sccache-action#195</a></li>
<li>Bump <code>@​types/node</code> from 22.13.0 to 22.13.17 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/194">Mozilla-Actions/sccache-action#194</a></li>
<li>Bump undici from 5.28.5 to 5.29.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/204">Mozilla-Actions/sccache-action#204</a></li>
<li>Bump eslint-config-prettier from 9.1.0 to 10.1.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/201">Mozilla-Actions/sccache-action#201</a></li>
<li>Bump ts-jest from 29.2.6 to 29.3.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/200">Mozilla-Actions/sccache-action#200</a></li>
<li>Bump eslint-plugin-prettier from 5.2.5 to 5.5.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/221">Mozilla-Actions/sccache-action#221</a></li>
<li>Bump eslint-config-prettier from 10.1.2 to 10.1.8 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/214">Mozilla-Actions/sccache-action#214</a></li>
<li>Bump the github-actions group across 1 directory with 2 updates by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/220">Mozilla-Actions/sccache-action#220</a></li>
<li>Add job id to annotation title by <a
href="https://github.com/wetheredge"><code>@​wetheredge</code></a> in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/212">Mozilla-Actions/sccache-action#212</a></li>
<li>Bump <code>@​actions/io</code> from 1.1.3 to 2.0.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/228">Mozilla-Actions/sccache-action#228</a></li>
<li>Bump eslint-plugin-import from 2.31.0 to 2.32.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/227">Mozilla-Actions/sccache-action#227</a></li>
<li>Bump actions/setup-node from 5 to 6 in the github-actions group by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/226">Mozilla-Actions/sccache-action#226</a></li>
<li>Bump <code>@​actions/github</code> from 6.0.0 to 6.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/233">Mozilla-Actions/sccache-action#233</a></li>
<li>Bump minimatch by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/239">Mozilla-Actions/sccache-action#239</a></li>
<li>Bump actions/checkout from 5 to 6 in the github-actions group by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/232">Mozilla-Actions/sccache-action#232</a></li>
<li>Bump ts-jest from 29.3.2 to 29.4.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/240">Mozilla-Actions/sccache-action#240</a></li>
<li>Bump to <code>node24</code> by <a
href="https://github.com/cakebaker"><code>@​cakebaker</code></a> in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/245">Mozilla-Actions/sccache-action#245</a></li>
<li>Bump flatted from 3.3.1 to 3.4.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/248">Mozilla-Actions/sccache-action#248</a></li>
<li>Bump picomatch from 2.3.1 to 2.3.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/249">Mozilla-Actions/sccache-action#249</a></li>
<li>Bump handlebars from 4.7.8 to 4.7.9 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/250">Mozilla-Actions/sccache-action#250</a></li>
<li>Fix code block formatting in README.md by <a
href="https://github.com/baseplate-admin"><code>@​baseplate-admin</code></a>
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/246">Mozilla-Actions/sccache-action#246</a></li>
<li>Bump js-yaml from 3.14.1 to 3.14.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/231">Mozilla-Actions/sccache-action#231</a></li>
<li>prepare version 0.0.10 by <a
href="https://github.com/sylvestre"><code>@​sylvestre</code></a> in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/251">Mozilla-Actions/sccache-action#251</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/brianmichel"><code>@​brianmichel</code></a>
made their first contribution in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/193">Mozilla-Actions/sccache-action#193</a></li>
<li><a
href="https://github.com/wetheredge"><code>@​wetheredge</code></a> made
their first contribution in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/212">Mozilla-Actions/sccache-action#212</a></li>
<li><a
href="https://github.com/baseplate-admin"><code>@​baseplate-admin</code></a>
made their first contribution in <a
href="https://redirect.github.com/Mozilla-Actions/sccache-action/pull/246">Mozilla-Actions/sccache-action#246</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/Mozilla-Actions/sccache-action/compare/v0.0.9...v0.0.10">https://github.com/Mozilla-Actions/sccache-action/compare/v0.0.9...v0.0.10</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/9e7fa8a12102821edf02ca5dbea1acd0f89a2696"><code>9e7fa8a</code></a>
Merge pull request <a
href="https://redirect.github.com/mozilla-actions/sccache-action/issues/251">#251</a>
from sylvestre/ver</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/3ca012d1e0c8c9f363fd709c2a022f9d0c3d6f85"><code>3ca012d</code></a>
prepare version 0.0.10</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/7cf164359ee744609be2e8d4e59b7b4473ba6ffb"><code>7cf1643</code></a>
Merge pull request <a
href="https://redirect.github.com/mozilla-actions/sccache-action/issues/231">#231</a>
from Mozilla-Actions/dependabot/npm_and_yarn/js-yaml-...</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/b2be80214f85674195e711d442be22eb18fbbcb9"><code>b2be802</code></a>
Merge pull request <a
href="https://redirect.github.com/mozilla-actions/sccache-action/issues/246">#246</a>
from baseplate-admin/patch-1</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/84812a50fb0ca74b852818a3cfe4d0f8a7e4c15a"><code>84812a5</code></a>
Merge pull request <a
href="https://redirect.github.com/mozilla-actions/sccache-action/issues/250">#250</a>
from Mozilla-Actions/dependabot/npm_and_yarn/handleba...</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/4e283182f1d6aa05fb561228d8904773db2ff12e"><code>4e28318</code></a>
Merge pull request <a
href="https://redirect.github.com/mozilla-actions/sccache-action/issues/249">#249</a>
from Mozilla-Actions/dependabot/npm_and_yarn/picomatc...</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/cfa813ebe3578b37ef0887b18e687d25be872c6e"><code>cfa813e</code></a>
Merge pull request <a
href="https://redirect.github.com/mozilla-actions/sccache-action/issues/248">#248</a>
from Mozilla-Actions/dependabot/npm_and_yarn/flatted-...</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/ef3762b447d7b4f49d5ffa178b103427dbb0b08b"><code>ef3762b</code></a>
Merge pull request <a
href="https://redirect.github.com/mozilla-actions/sccache-action/issues/245">#245</a>
from cakebaker/bump_to_node24</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/919bfb6881255cec28fda6ade2b0deedb5273356"><code>919bfb6</code></a>
Bump handlebars from 4.7.8 to 4.7.9</li>
<li><a
href="https://github.com/Mozilla-Actions/sccache-action/commit/167904be3a121ef63c7eba0472d6bb5475f2c4b9"><code>167904b</code></a>
Bump picomatch from 2.3.1 to 2.3.2</li>
<li>Additional commits viewable in <a
href="https://github.com/mozilla-actions/sccache-action/compare/v0.0.9...v0.0.10">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>
2026-04-30 12:22:27 +02:00

392 lines
17 KiB
YAML

# Run all tests, with or without flaky tests.
name: Tests
on:
workflow_call:
inputs:
rust-version:
description: "The version of the rust compiler to run"
type: string
default: "stable"
flaky:
description: "Whether to also run flaky tests"
type: boolean
default: false
git-ref:
description: "Which git ref to checkout"
type: string
default: ${{ github.ref }}
env:
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
SCCACHE_CACHE_SIZE: "10G"
CRATES_LIST: "iroh,iroh-bench,iroh-dns-server,iroh-relay"
IROH_FORCE_STAGING_RELAYS: "1"
NEXTEST_VERSION: "0.9.80"
jobs:
pick-runner:
uses: "./.github/workflows/pick-runner.yml"
with:
min_free_runners: 3
secrets:
RUNNER_READ_TOKEN: ${{ secrets.RUNNER_READ_TOKEN }}
build_and_test_nix:
timeout-minutes: 30
name: "Tests"
needs: pick-runner
runs-on: ${{ fromJSON(matrix.runs_on) }}
strategy:
fail-fast: false
matrix:
name: [ubuntu-latest, macOS-arm-latest]
rust: ["${{ inputs.rust-version }}"]
features: [all, none, default]
include:
# ubuntu cells route via pick-runner slots 1-3
- name: ubuntu-latest
features: all
os: ubuntu-latest
release-os: linux
release-arch: amd64
runs_on: ${{ needs.pick-runner.outputs.overflow_1 }}
- name: ubuntu-latest
features: none
os: ubuntu-latest
release-os: linux
release-arch: amd64
runs_on: ${{ needs.pick-runner.outputs.overflow_2 }}
- name: ubuntu-latest
features: default
os: ubuntu-latest
release-os: linux
release-arch: amd64
runs_on: ${{ needs.pick-runner.outputs.overflow_3 }}
# mac cells always stay on self-hosted mac (not in the routing pool)
- name: macOS-arm-latest
features: all
os: macOS-latest
release-os: darwin
release-arch: aarch64
runs_on: '["self-hosted","macOS","ARM64"]'
- name: macOS-arm-latest
features: none
os: macOS-latest
release-os: darwin
release-arch: aarch64
runs_on: '["self-hosted","macOS","ARM64"]'
- name: macOS-arm-latest
features: default
os: macOS-latest
release-os: darwin
release-arch: aarch64
runs_on: '["self-hosted","macOS","ARM64"]'
env:
# Using self-hosted runners so use local cache for sccache and
# not SCCACHE_GHA_ENABLED.
RUSTC_WRAPPER: "sccache"
steps:
- name: Configure sccache backend
shell: bash
run: |
if [[ "${RUNNER_NAME:-}" == blacksmith-* ]]; then
echo "Runner: $RUNNER_NAME → GHA-backed sccache"
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
else
echo "Runner: $RUNNER_NAME → local-disk sccache"
# leave SCCACHE_GHA_ENABLED unset; sccache defaults to local disk
fi
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ inputs.git-ref }}
- name: Install ${{ matrix.rust }} rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest@${{ env.NEXTEST_VERSION }}
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.10
continue-on-error: true
- uses: ./.github/workflows/sccache-probe
- name: Select features
run: |
case "${{ matrix.features }}" in
all)
echo "FEATURES=--all-features" >> "$GITHUB_ENV"
;;
none)
echo "FEATURES=--no-default-features" >> "$GITHUB_ENV"
;;
default)
echo "FEATURES=" >> "$GITHUB_ENV"
;;
*)
exit 1
esac
- name: check features
if: ${{ ! inputs.flaky }}
run: |
for i in ${CRATES_LIST//,/ }
do
echo "Checking $i $FEATURES"
targets="--lib --bins"
echo cargo check -p $i $FEATURES $targets
cargo check -p $i $FEATURES $targets
done
env:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
- name: build tests
run: |
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --no-run
- name: list ignored tests
run: |
cargo nextest list --workspace ${{ env.FEATURES }} --lib --bins --tests --run-ignored ignored-only
- name: run tests
run: |
mkdir -p output
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --profile ci --run-ignored ${{ inputs.flaky && 'all' || 'default' }} ${{ inputs.flaky && '--verbose' || '' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} > output/${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
env:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
NEXTEST_EXPERIMENTAL_LIBTEST_JSON: 1
- name: upload results
if: ${{ failure() && inputs.flaky }}
uses: actions/upload-artifact@v7
with:
name: libtest_run_${{ github.run_number }}-${{ github.run_attempt }}-${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
path: output
retention-days: 45
compression-level: 0
- name: doctests
if: ${{ (! inputs.flaky) && matrix.features == 'all' }}
env:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
run: |
cargo test --workspace --all-features --doc
# We can not check the doctest features by only compiling them,
# so are forced to run them once more.
- name: Check doctest features
if: ${{ ! inputs.flaky }}
env:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
run: |
for i in ${CRATES_LIST//,/ }
do
echo "Checking $i doctest $FEATURES"
echo cargo test -p $i --doc $FEATURES
cargo test -p $i --doc $FEATURES
done
build_and_test_windows:
timeout-minutes: 30
name: "Tests"
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
name: [windows-latest]
rust: ["${{ inputs.rust-version}}"]
features: [all, none, default]
target:
- x86_64-pc-windows-msvc
include:
- name: windows-latest
os: windows
runner: [self-hosted, windows, x64]
env:
# Using self-hosted runners so use local cache for sccache and
# not SCCACHE_GHA_ENABLED.
RUSTC_WRAPPER: "sccache"
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ inputs.git-ref }}
- name: Install ${{ matrix.rust }}
run: |
rustup toolchain install ${{ matrix.rust }}
rustup toolchain default ${{ matrix.rust }}
rustup target add ${{ matrix.target }}
rustup set default-host ${{ matrix.target }}
- name: Cache cargo-nextest
id: cache-nextest
uses: actions/cache@v5
with:
path: ~/.cargo/bin/cargo-nextest.exe
key: nextest-windows-${{ env.NEXTEST_VERSION }}
- name: Install cargo-nextest
if: steps.cache-nextest.outputs.cache-hit != 'true'
shell: powershell
run: |
$tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'zip' } -PassThru
Invoke-WebRequest -OutFile $tmp https://get.nexte.st/${{ env.NEXTEST_VERSION }}/windows
$outputDir = if ($Env:CARGO_HOME) { Join-Path $Env:CARGO_HOME "bin" } else { "~/.cargo/bin" }
$tmp | Expand-Archive -DestinationPath $outputDir -Force
$tmp | Remove-Item
- name: Select features
run: |
switch ("${{ matrix.features }}") {
"all" {
echo "FEATURES=--all-features" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
}
"none" {
echo "FEATURES=--no-default-features" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
}
"default" {
echo "FEATURES=" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
}
default {
Exit 1
}
}
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.10
continue-on-error: true
- uses: ./.github/workflows/sccache-probe
- uses: msys2/setup-msys2@v2
with:
release: false
- name: Install aws-lc-sys build dependencies
shell: powershell
run: |
$chocoPath = "$Env:ProgramData\chocolatey\bin\choco.exe"
if (!(Test-Path $chocoPath)) {
$chocoPath = "$Env:SystemDrive\ProgramData\chocolatey\bin\choco.exe"
}
& $chocoPath install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
& $chocoPath install nasm -y
echo "C:\Program Files\CMake\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\Program Files\NASM" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
- name: build tests
run: |
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --target ${{ matrix.target }} --no-run
- name: list ignored tests
run: |
cargo nextest list --workspace ${{ env.FEATURES }} --lib --bins --tests --target ${{ matrix.target }} --run-ignored ignored-only
- name: tests
run: |
mkdir -p output
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --profile ci --target ${{ matrix.target }} --run-ignored ${{ inputs.flaky && 'all' || 'default' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} > output/${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
env:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
NEXTEST_EXPERIMENTAL_LIBTEST_JSON: 1
- name: upload results
if: ${{ failure() && inputs.flaky }}
uses: actions/upload-artifact@v7
with:
name: libtest_run_${{ github.run_number }}-${{ github.run_attempt }}-${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
path: output
retention-days: 1
compression-level: 0
minimal-crates:
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
name: [ubuntu-latest, macOS-arm-latest] # TODO: windows
include:
- name: ubuntu-latest
os: ubuntu-latest
release-os: linux
release-arch: amd64
runner: [self-hosted, linux, X64]
- name: macOS-arm-latest
os: macOS-latest
release-os: darwin
release-arch: aarch64
runner: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
- name: cargo check
run: |
rm -f Cargo.lock
cargo +nightly check -Z minimal-versions --workspace --all-features --lib --bins
minimal-crates-windows:
timeout-minutes: 30
name: "Minimal Crates (Windows)"
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
name: [windows-latest]
rust: ["${{ inputs.rust-version}}"]
target:
- x86_64-pc-windows-msvc
include:
- name: windows-latest
os: windows
runner: [self-hosted, windows, x64]
env:
# Using self-hosted runners so use local cache for sccache and
# not SCCACHE_GHA_ENABLED.
RUSTC_WRAPPER: "sccache"
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ inputs.git-ref }}
- name: Install Rust nightly
run: |
rustup toolchain install nightly
rustup target add ${{ matrix.target }}
rustup set default-host ${{ matrix.target }}
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.10
continue-on-error: true
- uses: ./.github/workflows/sccache-probe
- uses: msys2/setup-msys2@v2
with:
release: false
- name: Install aws-lc-sys build dependencies
shell: powershell
run: |
$chocoPath = "$Env:ProgramData\chocolatey\bin\choco.exe"
if (!(Test-Path $chocoPath)) {
$chocoPath = "$Env:SystemDrive\ProgramData\chocolatey\bin\choco.exe"
}
& $chocoPath install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
& $chocoPath install nasm -y
echo "C:\Program Files\CMake\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\Program Files\NASM" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
- name: cargo check
run: |
rm -Force Cargo.lock
cargo +nightly check -Z minimal-versions --workspace --all-features --lib --bins