Skip to content

Commit

Permalink
ci: add nopanic check for windows (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Oct 17, 2024
1 parent 136291f commit b055577
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/nopanic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,15 @@ jobs:
run: cargo build --release --target=aarch64-apple-darwin
- name: Build (apple-other.rs)
run: cargo build --release --target=aarch64-apple-ios

windows:
name: Windows
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-10-14
components: rust-src
- run: cargo build --release
- run: cargo build --release --target=x86_64-win7-windows-msvc -Zbuild-std="std,panic_abort"
1 change: 1 addition & 0 deletions nopanic_check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ getrandom = { path = ".." }
[profile.release]
panic = "abort"
strip = true
lto = "fat"

[lints.rust.unexpected_cfgs]
level = "warn"
Expand Down

0 comments on commit b055577

Please sign in to comment.