Skip to content

Commit

Permalink
Add macOS job
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 14, 2024
1 parent a7c8155 commit ffbfcd8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/nopanic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
linux:
name: No panic (Linux)
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -56,3 +56,24 @@ jobs:
run: cargo build --release --target wasm32-wasip2
- name: Check (wasi.rs, preview 2)
run: ret=$(grep panic target/wasm32-wasip2/release/getrandom_wrapper.wasm; echo $?); [ $ret -eq 1 ]

macos:
name: macOS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
# We need Nightly for the rust-std component for wasm32-wasip2
toolchain: stable
targets: wasm32-wasip1, wasm32-wasip2

- name: Build (getentropy.rs)
run: cargo build --release
- name: Check (getentropy.rs)
run: ret=$(grep panic target/release/libgetrandom_wrapper.so; echo $?); [ $ret -eq 1 ]

- name: Build (apple-other.rs)
run: cargo build --release --target=aarch64-apple-ios
- name: Check (apple-other.rs)
run: ret=$(grep panic target/aarch64-apple-ios/release/libgetrandom_wrapper.so; echo $?); [ $ret -eq 1 ]

0 comments on commit ffbfcd8

Please sign in to comment.