-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
547ff03
commit 2b48ad5
Showing
126 changed files
with
16,447 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: clippy,rustfmt | ||
- name: Print versions | ||
run: | | ||
cargo --version | ||
rustc --version | ||
clippy-driver --version | ||
rustfmt --version | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Run clippy | ||
run: cargo clippy --verbose --all-targets -- -D clippy::all | ||
- name: Check code formatting | ||
run: cargo fmt --verbose --all -- --check | ||
|
||
doc: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTDOCFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Print versions | ||
run: | | ||
cargo --version | ||
rustc --version | ||
rustdoc --version | ||
- name: Doc | ||
run: cargo doc --verbose | ||
- name: Doc with all features | ||
run: cargo doc --verbose --all-features | ||
|
||
miri-test: | ||
name: Test with miri | ||
runs-on: ubuntu-latest | ||
env: | ||
MIRIFLAGS: -Zmiri-disable-isolation | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
components: miri | ||
- run: cargo miri test --verbose --no-default-features | ||
- run: cargo miri test --verbose --all-features | ||
|
||
sanitizer-test: | ||
name: Test with -Zsanitizer=${{ matrix.sanitizer }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sanitizer: [address, thread, leak] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
components: rust-src | ||
- name: Test with sanitizer | ||
env: | ||
RUSTFLAGS: -Zsanitizer=${{ matrix.sanitizer }} | ||
RUSTDOCFLAGS: -Zsanitizer=${{ matrix.sanitizer }} | ||
# only needed by asan | ||
ASAN_OPTIONS: detect_stack_use_after_return=1,detect_leaks=0 | ||
# Asan's leak detection occasionally complains | ||
# about some small leaks if backtraces are captured, | ||
# so ensure they're not | ||
RUST_BACKTRACE: 0 | ||
run: cargo test -Zbuild-std --verbose --target=x86_64-unknown-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: | ||
pull_request: {} | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- main | ||
- master | ||
schedule: | ||
- cron: '0 0 * * *' | ||
name: Semgrep config | ||
jobs: | ||
semgrep: | ||
name: semgrep/ci | ||
runs-on: ubuntu-latest | ||
env: | ||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
SEMGREP_URL: https://cloudflare.semgrep.dev | ||
SEMGREP_APP_URL: https://cloudflare.semgrep.dev | ||
SEMGREP_VERSION_CHECK_URL: https://cloudflare.semgrep.dev/api/check-version | ||
container: | ||
image: semgrep/semgrep | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: semgrep ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/artifacts | ||
/target | ||
/engine/target/criterion | ||
/wasm/pkg | ||
wasm-pack.log | ||
.DS_Store |
Oops, something went wrong.