Skip to content

Commit 04487bf

Browse files
committed
Add a dedicated Ci job to test the native-tls backend.
prtest:full
1 parent 2f23518 commit 04487bf

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,23 @@ jobs:
812812
# Run the tests!
813813
- run: cargo test -p wasmtime-wasi-nn --features ${{ matrix.feature }}
814814

815+
# Test `wasmtime-wasi-tls-nativetls` in its own job. This is because it
816+
# depends on OpenSSL, which is not easily available on all platforms.
817+
test_wasi_tls_nativetls:
818+
name: Test wasi-tls using native-tls provider
819+
needs: determine
820+
if: needs.determine.outputs.run-full
821+
runs-on: ${{ matrix.os }}
822+
strategy:
823+
matrix:
824+
os: [ubuntu-latest, windows-latest, macos-latest]
825+
steps:
826+
- uses: actions/checkout@v4
827+
with:
828+
submodules: true
829+
- uses: ./.github/actions/install-rust
830+
- run: cargo test -p wasmtime-wasi-tls-nativetls
831+
815832
# Test the `wasmtime-fuzzing` crate. Split out from the main tests because
816833
# `--all-features` brings in OCaml, which is a pain to get setup for all
817834
# targets.
@@ -1114,6 +1131,7 @@ jobs:
11141131
- doc
11151132
- micro_checks
11161133
- special_tests
1134+
- test_wasi_tls_nativetls
11171135
- clippy
11181136
- monolith_checks
11191137
- platform_checks

ci/run-tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# - wasmtime-wasi-nn: mutually-exclusive features that aren't available for all
88
# targets, needs its own CI job.
99
#
10+
# - wasmtime-wasi-tls-nativetls: the openssl dependency does not play nice with
11+
# cross compilation. This crate is tested in a separate CI job.
12+
#
1013
# - wasmtime-fuzzing: enabling all features brings in OCaml which is a pain to
1114
# configure for all targets, so it has its own CI job.
1215
#
@@ -21,6 +24,7 @@
2124
args = ['cargo', 'test', '--workspace', '--all-features']
2225
args.append('--exclude=test-programs')
2326
args.append('--exclude=wasmtime-wasi-nn')
27+
args.append('--exclude=wasmtime-wasi-tls-nativetls')
2428
args.append('--exclude=wasmtime-fuzzing')
2529
args.append('--exclude=wasm-spec-interpreter')
2630
args.append('--exclude=veri_engine')

0 commit comments

Comments
 (0)