windows-reactor make callback panics fatal (#4829)
#4314
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: no-default-features | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - 'crates/libs/rdl/rdl.md' | |
| - 'docs/**' | |
| push: | |
| paths-ignore: | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - 'crates/libs/rdl/rdl.md' | |
| - 'docs/**' | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
| jobs: | |
| linux: | |
| # Cross-platform crates that opt into `no_std` must keep building on a | |
| # non-Windows target with default features off. The list is intentionally | |
| # narrower than the Windows job's `--workspace`-style sweep below. | |
| runs-on: ubuntu-24.04 | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Update toolchain | |
| run: rustup update --no-self-update stable && rustup default stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: no-default-features-linux | |
| - name: Build | |
| run: | | |
| set -euxo pipefail | |
| for crate in \ | |
| windows-numerics \ | |
| windows-link \ | |
| windows-result \ | |
| windows-core \ | |
| windows-strings \ | |
| windows-collections ; do | |
| cargo build --target x86_64-unknown-linux-gnu --no-default-features -p "$crate" | |
| done | |
| - name: Check diff | |
| shell: bash | |
| run: | | |
| git add -N . | |
| git diff --exit-code || (echo 'Build changed code in the repo.'; exit 1) | |
| no-default-features: | |
| runs-on: windows-2025-vs2026 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Update toolchain | |
| run: rustup update --no-self-update stable && rustup default stable-x86_64-pc-windows-msvc | |
| - name: Add toolchain target | |
| run: rustup target add x86_64-pc-windows-msvc | |
| - name: Fix environment | |
| uses: ./.github/actions/fix-environment | |
| with: | |
| target: x86_64-pc-windows-msvc | |
| - uses: Swatinem/rust-cache@v2 | |
| # generated - run `cargo run -p tool_yml` to update | |
| - name: Check cppwinrt | |
| run: cargo check -p cppwinrt --no-default-features | |
| - name: Check windows | |
| run: cargo check -p windows --no-default-features | |
| - name: Check windows-animation | |
| run: cargo check -p windows-animation --no-default-features | |
| - name: Check windows-bindgen | |
| run: cargo check -p windows-bindgen --no-default-features | |
| - name: Check windows-canvas | |
| run: cargo check -p windows-canvas --no-default-features | |
| - name: Check windows-clang | |
| run: cargo check -p windows-clang --no-default-features | |
| - name: Check windows-collections | |
| run: cargo check -p windows-collections --no-default-features | |
| - name: Check windows-composition | |
| run: cargo check -p windows-composition --no-default-features --features reactor | |
| - name: Check windows-core | |
| run: cargo check -p windows-core --no-default-features | |
| - name: Check windows-default | |
| run: cargo check -p windows-default --no-default-features | |
| - name: Check windows-future | |
| run: cargo check -p windows-future --no-default-features | |
| - name: Check windows-implement | |
| run: cargo check -p windows-implement --no-default-features | |
| - name: Check windows-interface | |
| run: cargo check -p windows-interface --no-default-features | |
| - name: Check windows-link | |
| run: cargo check -p windows-link --no-default-features | |
| - name: Check windows-metadata | |
| run: cargo check -p windows-metadata --no-default-features | |
| - name: Check windows-numerics | |
| run: cargo check -p windows-numerics --no-default-features | |
| - name: Check windows-rdl | |
| run: cargo check -p windows-rdl --no-default-features | |
| - name: Check windows-reactor | |
| run: cargo check -p windows-reactor --no-default-features | |
| - name: Check windows-reactor-setup | |
| run: cargo check -p windows-reactor-setup --no-default-features | |
| - name: Check windows-reference | |
| run: cargo check -p windows-reference --no-default-features | |
| - name: Check windows-registry | |
| run: cargo check -p windows-registry --no-default-features | |
| - name: Check windows-result | |
| run: cargo check -p windows-result --no-default-features | |
| - name: Check windows-services | |
| run: cargo check -p windows-services --no-default-features | |
| - name: Check windows-strings | |
| run: cargo check -p windows-strings --no-default-features | |
| - name: Check windows-sys | |
| run: cargo check -p windows-sys --no-default-features | |
| - name: Check windows-threading | |
| run: cargo check -p windows-threading --no-default-features | |
| - name: Check windows-time | |
| run: cargo check -p windows-time --no-default-features | |
| - name: Check windows-version | |
| run: cargo check -p windows-version --no-default-features | |
| - name: Check windows-webview | |
| run: cargo check -p windows-webview --no-default-features | |
| - name: Check windows-window | |
| run: cargo check -p windows-window --no-default-features |