Skip to content

Commit 347463d

Browse files
committed
Initial commit
0 parents  commit 347463d

224 files changed

Lines changed: 23676 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build-n-Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main"]
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: Swatinem/rust-cache@v2
17+
- uses: dtolnay/rust-toolchain@stable
18+
with:
19+
targets: "wasm32-wasip1"
20+
- name: Check no-default-features
21+
run: cargo check --no-default-features
22+
- name: Build
23+
run: cargo build
24+
- name: Run tests
25+
run: cargo test --verbose

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: "*"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install LLVM (for llvm-strip)
13+
run: sudo apt-get update && sudo apt-get install -y llvm
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
targets: "aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu"
17+
- uses: goto-bus-stop/setup-zig@v2
18+
- uses: baptiste0928/cargo-install@v3
19+
with:
20+
crate: cargo-zigbuild
21+
- name: Build aarch64 binary
22+
run: cargo zigbuild --release --target aarch64-unknown-linux-gnu.2.31
23+
- name: Build x86_64 binary
24+
run: cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.31
25+
- name: Strip binaries
26+
run: llvm-strip target/*/release/wasmfuzz
27+
- uses: actions/upload-artifact@v4
28+
with:
29+
name: wasmfuzz-aarch64-unknown-linux-gnu.2.31
30+
path: target/aarch64-unknown-linux-gnu/release/wasmfuzz
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: wasmfuzz-x86_64-unknown-linux-gnu.2.31
34+
path: target/x86_64-unknown-linux-gnu/release/wasmfuzz

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

0 commit comments

Comments
 (0)