Skip to content

Commit 850e186

Browse files
feat(ci) add a native e2e action
1 parent 5ceeb2e commit 850e186

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,23 @@ jobs:
211211
- run: rustup component add rust-src
212212
- run: cargo miri test -p wit-bindgen --all-features
213213

214+
native_e2e:
215+
name: Native E2E
216+
strategy:
217+
fail-fast: false
218+
matrix:
219+
os: [ubuntu-latest, macos-latest, windows-latest]
220+
runs-on: ${{ matrix.os }}
221+
steps:
222+
- uses: actions/checkout@v4
223+
with:
224+
submodules: true
225+
- name: Install Rust
226+
run: rustup update stable --no-self-update && rustup default stable
227+
# Builds the plugin in `crates/rust/tests/native-e2e` as a native cdylib,
228+
# loads it, and drives it through the import resolver and core ABI.
229+
- run: cargo test -p wit-bindgen-rust --test native_e2e
230+
214231
check:
215232
name: Check
216233
runs-on: ubuntu-latest
@@ -305,6 +322,7 @@ jobs:
305322
needs:
306323
- test
307324
- test_unit
325+
- native_e2e
308326
- rustfmt
309327
- build
310328
- verify-publish

0 commit comments

Comments
 (0)