Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit d2e3319

Browse files
authored
Merge pull request #218 from alexcrichton/merge
Merge with main
2 parents f240483 + b6e24de commit d2e3319

1,161 files changed

Lines changed: 12877 additions & 12969 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/cancel-on-failure/action.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ jobs:
4747
- run: rustup component add rustfmt
4848
- run: cargo fmt --all -- --check
4949

50-
# common logic to cancel the entire run if this job fails
51-
- uses: ./.github/actions/cancel-on-failure
52-
if: failure()
53-
5450
# Quick JS formatting/linting checks for the little bits of JS we have for the
5551
# `wasmtime explore` UI.
5652
check_js:
@@ -65,10 +61,6 @@ jobs:
6561
- run: npm run fmt-check
6662
working-directory: ./crates/explorer
6763

68-
# common logic to cancel the entire run if this job fails
69-
- uses: ./.github/actions/cancel-on-failure
70-
if: failure()
71-
7264
# Check Code style quickly by running `clang-format` over all the C/C++ code
7365
#
7466
# Note that `wasmtime-platform.h` is excluded here as it's auto-generated.
@@ -85,10 +77,6 @@ jobs:
8577
grep -v wasm.h | \
8678
xargs clang-format-18 --dry-run --Werror --verbose
8779
88-
# common logic to cancel the entire run if this job fails
89-
- uses: ./.github/actions/cancel-on-failure
90-
if: failure()
91-
9280
# Lint dependency graph for security advisories, duplicate versions, and
9381
# incompatible licences
9482
cargo_deny:
@@ -108,10 +96,6 @@ jobs:
10896
echo `pwd` >> $GITHUB_PATH
10997
- run: cargo deny check bans licenses
11098

111-
# common logic to cancel the entire run if this job fails
112-
- uses: ./.github/actions/cancel-on-failure
113-
if: failure()
114-
11599
# Ensure dependencies are vetted. See https://mozilla.github.io/cargo-vet/
116100
#
117101
# Note that this step, on PRs only, is allowed to fail. This is then followed
@@ -142,10 +126,6 @@ jobs:
142126
- run: rustc scripts/publish.rs && ./publish bump-patch && cargo vet
143127
name: Ensure `cargo vet` works if versions are bumped
144128

145-
# common logic to cancel the entire run if this job fails
146-
- uses: ./.github/actions/cancel-on-failure
147-
if: failure()
148-
149129
cargo_vet_failure_for_prs:
150130
name: Cargo vet failed on a Pull Request
151131
needs:
@@ -327,10 +307,6 @@ jobs:
327307
name: gh-pages
328308
path: gh-pages.tar.gz
329309

330-
# common logic to cancel the entire run if this job fails
331-
- uses: ./.github/actions/cancel-on-failure
332-
if: failure()
333-
334310
# Checks of various feature combinations and whether things compile. The goal
335311
# here isn't to run tests, mostly just serve as a double-check that Rust code
336312
# compiles and is likely to work everywhere else.
@@ -432,10 +408,6 @@ jobs:
432408
)
433409
echo "$checks" | xargs -I CHECK sh -c 'echo "=== cargo check CHECK ==="; cargo check CHECK'
434410
435-
# common logic to cancel the entire run if this job fails
436-
- uses: ./.github/actions/cancel-on-failure
437-
if: failure()
438-
439411
special_tests:
440412
name: One-off special tests
441413
runs-on: ubuntu-latest
@@ -449,10 +421,6 @@ jobs:
449421
- run: cargo test -p wasmtime-internal-fiber --no-default-features
450422
- run: cargo test -p cranelift-tools --test logged-filetests
451423

452-
# common logic to cancel the entire run if this job fails
453-
- uses: ./.github/actions/cancel-on-failure
454-
if: failure()
455-
456424
# Check that Clippy lints are passing.
457425
clippy:
458426
name: Clippy
@@ -468,10 +436,6 @@ jobs:
468436
- run: rustup component add clippy
469437
- run: cargo clippy --workspace --all-targets
470438

471-
# common logic to cancel the entire run if this job fails
472-
- uses: ./.github/actions/cancel-on-failure
473-
if: failure()
474-
475439
# Similar to `micro_checks` but where we need to install some more state
476440
# (e.g. Android NDK) and we haven't factored support for those things out into
477441
# a parallel jobs yet.
@@ -513,10 +477,6 @@ jobs:
513477
run: ./ci/vendor-c-api-headers.sh
514478
- run: git diff --exit-code
515479

516-
# common logic to cancel the entire run if this job fails
517-
- uses: ./.github/actions/cancel-on-failure
518-
if: failure()
519-
520480
# Various checks that Wasmtime builds for a variety of platforms. Each
521481
# platform may not include the entire dependency tree and maybe just a few
522482
# features here and there, see the `include` matrix for more details.
@@ -601,10 +561,6 @@ jobs:
601561
env:
602562
CARGO_BUILD_TARGET: ${{ matrix.target }}
603563

604-
# common logic to cancel the entire run if this job fails
605-
- uses: ./.github/actions/cancel-on-failure
606-
if: failure()
607-
608564
# Run tests that require a nightly compiler, such as building fuzz targets.
609565
test_nightly:
610566
needs: determine
@@ -647,10 +603,6 @@ jobs:
647603
- run: cargo fuzz build --dev --fuzz-dir ./crates/environ/fuzz --features component-model
648604
- run: cargo fuzz build --dev --fuzz-dir ./cranelift/assembler-x64/fuzz
649605

650-
# common logic to cancel the entire run if this job fails
651-
- uses: ./.github/actions/cancel-on-failure
652-
if: failure()
653-
654606
# Perform all tests of the c-api
655607
test_capi:
656608
needs: determine
@@ -680,10 +632,6 @@ jobs:
680632
- run: cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build examples/build --config Debug --target test
681633
if: runner.os != 'Windows'
682634

683-
# common logic to cancel the entire run if this job fails
684-
- uses: ./.github/actions/cancel-on-failure
685-
if: failure()
686-
687635
# Perform all tests (debug mode) for `wasmtime`.
688636
#
689637
# Note that the full matrix for what may run here is defined within
@@ -825,10 +773,6 @@ jobs:
825773
- run: python3 ./ci/run-tests.py --locked ${{ matrix.bucket }}
826774
shell: pwsh
827775

828-
# common logic to cancel the entire run if this job fails
829-
- uses: ./.github/actions/cancel-on-failure
830-
if: failure()
831-
832776
# Test `wasmtime-wasi-nn` in its own job, as not all of its backends are
833777
# compatible with all targets, and each must be tested separately anyways.
834778
test_wasi_nn:
@@ -868,10 +812,6 @@ jobs:
868812
# Run the tests!
869813
- run: cargo test -p wasmtime-wasi-nn --features ${{ matrix.feature }}
870814

871-
# common logic to cancel the entire run if this job fails
872-
- uses: ./.github/actions/cancel-on-failure
873-
if: failure()
874-
875815
# Test the `wasmtime-fuzzing` crate. Split out from the main tests because
876816
# `--all-features` brings in OCaml, which is a pain to get setup for all
877817
# targets.
@@ -890,10 +830,6 @@ jobs:
890830
- run: |
891831
cargo test -p wasmtime-fuzzing -p wasm-spec-interpreter
892832
893-
# common logic to cancel the entire run if this job fails
894-
- uses: ./.github/actions/cancel-on-failure
895-
if: failure()
896-
897833
# Test debug (DWARF) related functionality.
898834
test_debug_dwarf:
899835
needs: determine
@@ -922,10 +858,6 @@ jobs:
922858
LLDB: lldb-15 # override default version, 14
923859
WASI_SDK_PATH: /tmp/wasi-sdk
924860
925-
# common logic to cancel the entire run if this job fails
926-
- uses: ./.github/actions/cancel-on-failure
927-
if: failure()
928-
929861
build-preview1-component-adapter:
930862
name: Build wasi-preview1-component-adapter
931863
needs: determine
@@ -955,11 +887,6 @@ jobs:
955887
name: bins-wasi-preview1-component-adapter
956888
path: target/wasm32-unknown-unknown/release/wasi_snapshot_preview1.*.wasm
957889

958-
959-
# common logic to cancel the entire run if this job fails
960-
- uses: ./.github/actions/cancel-on-failure
961-
if: failure()
962-
963890
build-preview1-component-adapter-provider:
964891
name: Build wasi-preview1-component-adapter-provider
965892
needs: build-preview1-component-adapter
@@ -973,10 +900,6 @@ jobs:
973900
with:
974901
run-id: ${{ github.run_id }}
975902

976-
# common logic to cancel the entire run if this job fails
977-
- uses: ./.github/actions/cancel-on-failure
978-
if: failure()
979-
980903
# Verify the "min platform" example still works.
981904
test-min-platform-example:
982905
name: Test the min-platform example
@@ -1016,10 +939,6 @@ jobs:
1016939
name: wasmtime-platform-header
1017940
path: examples/min-platform/embedding/wasmtime-platform.h
1018941

1019-
# common logic to cancel the entire run if this job fails
1020-
- uses: ./.github/actions/cancel-on-failure
1021-
if: failure()
1022-
1023942
bench:
1024943
needs: determine
1025944
if: needs.determine.outputs.run-full
@@ -1033,10 +952,6 @@ jobs:
1033952
- run: rustup target add wasm32-wasip1
1034953
- run: cargo test --benches --release
1035954

1036-
# common logic to cancel the entire run if this job fails
1037-
- uses: ./.github/actions/cancel-on-failure
1038-
if: failure()
1039-
1040955
# Verify that cranelift's code generation is deterministic
1041956
meta_deterministic_check:
1042957
needs: determine
@@ -1051,10 +966,6 @@ jobs:
1051966
- run: cd cranelift/codegen && cargo build --features all-arch
1052967
- run: ci/ensure_deterministic_build.sh
1053968

1054-
# common logic to cancel the entire run if this job fails
1055-
- uses: ./.github/actions/cancel-on-failure
1056-
if: failure()
1057-
1058969
verify-publish:
1059970
needs: determine
1060971
if: github.repository == 'bytecodealliance/wasmtime' && needs.determine.outputs.run-full
@@ -1075,10 +986,6 @@ jobs:
1075986
# Make sure we can bump version numbers for the next release
1076987
- run: ./publish bump
1077988

1078-
# common logic to cancel the entire run if this job fails
1079-
- uses: ./.github/actions/cancel-on-failure
1080-
if: failure()
1081-
1082989
# Run a subset of tests under MIRI on CI to help check the `unsafe` code in
1083990
# Wasmtime to make sure it's at least not obviously incorrect for basic usage.
1084991
# Note that this doesn't run the full test suite since MIRI can't actually run
@@ -1124,10 +1031,6 @@ jobs:
11241031
- run: ${{ matrix.script }}
11251032
if: ${{ matrix.script }}
11261033

1127-
# common logic to cancel the entire run if this job fails
1128-
- uses: ./.github/actions/cancel-on-failure
1129-
if: failure()
1130-
11311034
# Perform release builds of `wasmtime` and `libwasmtime.so`. Builds a variety
11321035
# of platforms and architectures and then uploads the release artifacts to
11331036
# this workflow run's list of artifacts.
@@ -1176,10 +1079,6 @@ jobs:
11761079
name: bins-${{ matrix.build }}
11771080
path: dist
11781081

1179-
# common logic to cancel the entire run if this job fails
1180-
- uses: ./.github/actions/cancel-on-failure
1181-
if: failure()
1182-
11831082
# This is a "join node" which depends on all prior workflows. The merge queue,
11841083
# for example, gates on this to ensure that everything has executed
11851084
# successfully.

CODEOWNERS

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@
3434
/src/ @bytecodealliance/wasmtime-core-reviewers
3535
/tests/ @bytecodealliance/wasmtime-core-reviewers
3636

37+
# WASI
38+
/crates/wasi* @bytecodealliance/wasmtime-wasi-reviewers
39+
3740
# Cranelift/Winch compilers
38-
/cranelift/ @bytecodealliance/wasmtime-compiler-reviewers
39-
/winch/ @bytecodealliance/wasmtime-compiler-reviewers
41+
/cranelift/ @bytecodealliance/wasmtime-compiler-reviewers
42+
/winch/ @bytecodealliance/wasmtime-compiler-reviewers
43+
/crates/cranelift @bytecodealliance/wasmtime-compiler-reviewers
44+
/crates/winch @bytecodealliance/wasmtime-compiler-reviewers
4045

4146
# Fuzz testing
4247
/fuzz/ @bytecodealliance/wasmtime-fuzz-reviewers

0 commit comments

Comments
 (0)