Skip to content

Commit

Permalink
Fix nopanic checks
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Jan 17, 2025
1 parent 6b34c80 commit f457941
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nopanic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ jobs:
- name: Build (linux_android.rs)
env:
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_getrandom"
run: cargo build --release --features=opt_in
run: cargo build --release
- name: Check (linux_android.rs)
run: (exit $( grep -c panic target/release/libgetrandom_wrapper.so ))

- name: Build (rdrand.rs)
env:
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="rdrand"
run: cargo build --release --features=opt_in
run: cargo build --release
- name: Check (rdrand.rs)
run: (exit $( grep -c panic target/release/libgetrandom_wrapper.so ))

- name: Build (custom.rs)
env:
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="custom"
run: cargo build --release --features=opt_in
run: cargo build --release
- name: Check (custom.rs)
run: (exit $( grep -c panic target/release/libgetrandom_wrapper.so ))

Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Build (rndr.rs)
env:
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="rndr"
run: cross build --release --target=aarch64-unknown-linux-gnu --features=opt_in
run: cross build --release --target=aarch64-unknown-linux-gnu
- name: Check (rndr.rs)
run: (exit $( grep -c panic target/aarch64-unknown-linux-gnu/release/libgetrandom_wrapper.so ))

Expand Down
2 changes: 1 addition & 1 deletion nopanic_check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name = "getrandom_wrapper"
crate-type = ["cdylib"]

[dependencies]
getrandom = { path = ".." }
getrandom = { path = "..", features = ["opt_in"] }

[profile.release]
panic = "abort"
Expand Down

0 comments on commit f457941

Please sign in to comment.