Skip to content

Commit 786b073

Browse files
Merge branch 'main' into pytorch-dyn-link-pr
2 parents 727a4aa + 5c8cd22 commit 786b073

568 files changed

Lines changed: 39406 additions & 9612 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/github-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ inputs:
88
description: ''
99
required: true
1010
runs:
11-
using: 'node16'
11+
using: 'node20'
1212
main: 'main.js'

.github/workflows/main.yml

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ jobs:
338338
# here isn't to run tests, mostly just serve as a double-check that Rust code
339339
# compiles and is likely to work everywhere else.
340340
micro_checks:
341-
needs: determine
342341
name: Check ${{matrix.name}}
343342
strategy:
344343
fail-fast: true
@@ -419,12 +418,9 @@ jobs:
419418
env:
420419
GH_TOKEN: ${{ github.token }}
421420

422-
# Similar to `micro_checks` but where we need to install some more state
423-
# (e.g. Android NDK) and we haven't factored support for those things out into
424-
# a parallel jobs yet.
425-
monolith_checks:
426-
needs: determine
427-
name: Monolith Checks
421+
# Checks for no_std support, ensure that crates can build on a no_std target
422+
no_std_checks:
423+
name: no_std checks
428424
runs-on: ubuntu-latest
429425
env:
430426
CARGO_NDK_VERSION: 2.12.2
@@ -434,13 +430,52 @@ jobs:
434430
submodules: true
435431
- uses: ./.github/actions/install-rust
436432

437-
# Checks for no_std support, ensure that crates can build on a no_std
438-
# target
439433
- run: rustup target add x86_64-unknown-none
440434
- run: cargo check --target x86_64-unknown-none -p wasmtime --no-default-features --features runtime,gc,component-model
441435
- run: cargo check --target x86_64-unknown-none -p cranelift-control --no-default-features
442436
- run: cargo check --target x86_64-unknown-none -p pulley-interpreter --features encode,decode,disas,interp
443437

438+
# common logic to cancel the entire run if this job fails
439+
- run: gh run cancel ${{ github.run_id }}
440+
if: failure() && github.event_name != 'pull_request'
441+
env:
442+
GH_TOKEN: ${{ github.token }}
443+
444+
# Check that Clippy lints are passing.
445+
clippy:
446+
name: Clippy
447+
runs-on: ubuntu-latest
448+
env:
449+
CARGO_NDK_VERSION: 2.12.2
450+
steps:
451+
- uses: actions/checkout@v4
452+
with:
453+
submodules: true
454+
- uses: ./.github/actions/install-rust
455+
456+
- run: rustup component add clippy
457+
- run: cargo clippy --workspace --all-targets
458+
459+
# common logic to cancel the entire run if this job fails
460+
- run: gh run cancel ${{ github.run_id }}
461+
if: failure() && github.event_name != 'pull_request'
462+
env:
463+
GH_TOKEN: ${{ github.token }}
464+
465+
# Similar to `micro_checks` but where we need to install some more state
466+
# (e.g. Android NDK) and we haven't factored support for those things out into
467+
# a parallel jobs yet.
468+
monolith_checks:
469+
name: Monolith Checks
470+
runs-on: ubuntu-latest
471+
env:
472+
CARGO_NDK_VERSION: 2.12.2
473+
steps:
474+
- uses: actions/checkout@v4
475+
with:
476+
submodules: true
477+
- uses: ./.github/actions/install-rust
478+
444479
# Check that wasmtime compiles with panic=abort since there's some `#[cfg]`
445480
# for specifically panic=abort there.
446481
- run: cargo check -p wasmtime
@@ -462,10 +497,6 @@ jobs:
462497
- run: rustup target add x86_64-unknown-freebsd
463498
- run: cargo check -p wasmtime --no-default-features --features cranelift,wat,async,cache --target x86_64-unknown-freebsd
464499

465-
# Run clippy configuration
466-
- run: rustup component add clippy
467-
- run: cargo clippy --workspace --all-targets
468-
469500
# Re-vendor all WIT files and ensure that they're all up-to-date by ensuring
470501
# that there's no git changes.
471502
- name: Re-vendor WIT
@@ -1115,6 +1146,8 @@ jobs:
11151146
- cargo_vet
11161147
- doc
11171148
- micro_checks
1149+
- no_std_checks
1150+
- clippy
11181151
- monolith_checks
11191152
- checks_winarm64
11201153
- bench

0 commit comments

Comments
 (0)