Skip to content

Commit 21bb422

Browse files
committed
Merge branch 'main' into configure-probes
2 parents fa53600 + 405de1d commit 21bb422

39 files changed

Lines changed: 1035 additions & 416 deletions

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ jobs:
200200
run: cargo build --target wasm32-unknown-unknown -p iroh-base --all-features
201201

202202
- name: wasm32 build (iroh-relay)
203-
run: cargo build --target wasm32-unknown-unknown -p iroh-relay --no-default-features
203+
run: cargo build --target wasm32-unknown-unknown -p iroh-relay
204204

205205
- name: wasm32 build (iroh)
206-
run: cargo build --target wasm32-unknown-unknown -p iroh --no-default-features
206+
run: cargo build --target wasm32-unknown-unknown -p iroh
207207

208208
# If the Wasm file contains any 'import "env"' declarations, then
209209
# some non-Wasm-compatible code made it into the final code.
@@ -216,7 +216,7 @@ jobs:
216216
! wasm-tools print --skeleton target/wasm32-unknown-unknown/debug/iroh.wasm | grep 'import "env"'
217217
218218
- name: Run integration test in wasm
219-
run: cargo test -p iroh --test integration --target=wasm32-unknown-unknown --no-default-features
219+
run: cargo test -p iroh --test integration --target=wasm32-unknown-unknown
220220

221221
check_semver:
222222
runs-on: ubuntu-latest
@@ -317,11 +317,13 @@ jobs:
317317
- uses: dtolnay/rust-toolchain@stable
318318
- name: Verify optional deps are absent without features
319319
run: |
320-
tree=$(cargo tree -p iroh --no-default-features --edges normal)
321320
fail=0
322-
for dep in portmapper igd-next swarm-discovery; do
323-
if echo "$tree" | grep -q "$dep"; then
321+
for dep in portmapper igd-next swarm-discovery ring aws-lc-rs; do
322+
echo "cargo tree -p iroh --no-default-features --edges normal --target all -i $dep";
323+
output=$(cargo tree -p iroh --no-default-features --edges normal --target all -i "$dep" 2>&1) || true
324+
if ! echo "$output" | grep -qE "(nothing to print|did not match any packages)"; then
324325
echo "ERROR: $dep should not be in the dependency tree without its feature"
326+
echo "$output"
325327
fail=1
326328
fi
327329
done

.github/workflows/tests.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,18 @@ jobs:
221221
with:
222222
release: false
223223

224+
- name: Install aws-lc-sys build dependencies
225+
shell: powershell
226+
run: |
227+
$chocoPath = "$Env:ProgramData\chocolatey\bin\choco.exe"
228+
if (!(Test-Path $chocoPath)) {
229+
$chocoPath = "$Env:SystemDrive\ProgramData\chocolatey\bin\choco.exe"
230+
}
231+
& $chocoPath install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
232+
& $chocoPath install nasm -y
233+
echo "C:\Program Files\CMake\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
234+
echo "C:\Program Files\NASM" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
235+
224236
- name: build tests
225237
run: |
226238
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --target ${{ matrix.target }} --no-run
@@ -309,6 +321,18 @@ jobs:
309321
with:
310322
release: false
311323

324+
- name: Install aws-lc-sys build dependencies
325+
shell: powershell
326+
run: |
327+
$chocoPath = "$Env:ProgramData\chocolatey\bin\choco.exe"
328+
if (!(Test-Path $chocoPath)) {
329+
$chocoPath = "$Env:SystemDrive\ProgramData\chocolatey\bin\choco.exe"
330+
}
331+
& $chocoPath install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
332+
& $chocoPath install nasm -y
333+
echo "C:\Program Files\CMake\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
334+
echo "C:\Program Files\NASM" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
335+
312336
- name: cargo check
313337
run: |
314338
rm -Force Cargo.lock

0 commit comments

Comments
 (0)