Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 16, 2024
1 parent c6abf66 commit 527bdbd
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/nopanic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,46 +32,46 @@ jobs:
- name: Build (linux_android_with_fallback.rs)
run: cargo build --release
- name: Check (linux_android_with_fallback.rs)
run: ret=$(grep -c panic target/release/libgetrandom_wrapper.so); (( $ret == 1 ))
run: (exit $( grep -c panic target/release/libgetrandom_wrapper.so ))

- name: Build (linux_android.rs)
env:
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_getrandom"
run: cargo build --release
- name: Check (linux_android.rs)
run: ret=$(grep -c panic target/release/libgetrandom_wrapper.so); (( $ret == 1 ))
run: (exit $( grep -c panic target/release/libgetrandom_wrapper.so ))

# TODO: re-enable after https://github.com/bytecodealliance/rustix/pull/1184 is released
# - name: Build (linux_rustix.rs)
# env:
# RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_rustix"
# run: cargo build --release
# - name: Check (linux_rustix.rs)
# run: ret=$(grep -c panic target/release/libgetrandom_wrapper.so; echo $?); (( $ret == 1 ))
# 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
- name: Check (rdrand.rs)
run: ret=$(grep -c panic target/release/libgetrandom_wrapper.so; echo $?); (( $ret == 1 ))
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
- name: Check (custom.rs)
run: ret=$(grep -c panic target/release/libgetrandom_wrapper.so; echo $?); (( $ret == 1 ))
run: (exit $( grep -c panic target/release/libgetrandom_wrapper.so ))

- name: Build (wasi.rs, preview 1)
run: cargo build --release --target wasm32-wasip1
- name: Check (wasi.rs, preview 1)
run: ret=$(grep -c panic target/wasm32-wasip1/release/getrandom_wrapper.wasm; echo $?); (( $ret == 1 ))
run: (exit $( grep -c panic target/wasm32-wasip1/release/getrandom_wrapper.wasm ))

- name: Build (wasi.rs, preview 2)
run: cargo build --release --target wasm32-wasip2
- name: Check (wasi.rs, preview 2)
run: ret=$(grep -c panic target/wasm32-wasip2/release/getrandom_wrapper.wasm; echo $?); (( $ret == 1 ))
run: (exit $( grep -c panic target/wasm32-wasip2/release/getrandom_wrapper.wasm ))

cross:
name: Cross
Expand All @@ -93,22 +93,22 @@ jobs:
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="rndr"
run: cross build --release --target=aarch64-unknown-linux-gnu
- name: Check (rndr.rs)
run: ret=$(grep -c panic target/aarch64-unknown-linux-gnu/release/libgetrandom_wrapper.so; echo $?); (( $ret == 1 ))
run: (exit $( grep -c panic target/aarch64-unknown-linux-gnu/release/libgetrandom_wrapper.so ))

- name: Build (getrandom.rs)
run: cross build --release --target=x86_64-unknown-freebsd
- name: Check (getrandom.rs)
run: ret=$(grep -c panic target/x86_64-unknown-freebsd/release/libgetrandom_wrapper.so; echo $?); (( $ret == 1 ))
run: (exit $( grep -c panic target/x86_64-unknown-freebsd/release/libgetrandom_wrapper.so ))

- name: Build (netbsd.rs)
run: cross build --release --target=x86_64-unknown-netbsd
- name: Check (netbsd.rs)
run: ret=$(grep -c panic target/x86_64-unknown-netbsd/release/libgetrandom_wrapper.so; echo $?); (( $ret == 1 ))
run: (exit $( grep -c panic target/x86_64-unknown-netbsd/release/libgetrandom_wrapper.so ))

# - name: Build (solaris.rs)
# run: cross build --release --target=x86_64-pc-solaris
# - name: Check (solaris.rs)
# run: ret=$(grep -c panic target/x86_64-pc-solaris/release/libgetrandom_wrapper.so; echo $?); (( $ret == 1 ))
# run: (exit $( grep -c panic target/x86_64-pc-solaris/release/libgetrandom_wrapper.so ))

macos:
name: macOS
Expand All @@ -124,9 +124,9 @@ jobs:
- name: Build (getentropy.rs)
run: cargo build --release --target=aarch64-apple-darwin
- name: Check (getentropy.rs)
run: ret=$(grep -c panic target/aarch64-apple-darwin/release/libgetrandom_wrapper.dylib); (( $ret == 1 ))
run: (exit $( grep -c panic target/aarch64-apple-darwin/release/libgetrandom_wrapper.dylib ))

- name: Build (apple-other.rs)
run: cargo build --release --target=aarch64-apple-ios
- name: Check (apple-other.rs)
run: ret=$(grep -c panic target/aarch64-apple-ios/release/libgetrandom_wrapper.dylib); (( $ret == 1 ))
run: (exit $( grep -c panic target/aarch64-apple-ios/release/libgetrandom_wrapper.dylib ))

0 comments on commit 527bdbd

Please sign in to comment.