-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
44 changed files
with
9,766 additions
and
7 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,44 @@ | ||
name: Static Analysis | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'arbi/**' | ||
- 'examples/**' | ||
|
||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'arbi/**' | ||
- 'examples/**' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
lint-and-audit: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust Environment | ||
run: | | ||
# Install rustup | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
. "$HOME/.cargo/env" | ||
# Install clippy and rustfmt | ||
rustup component add clippy rustfmt | ||
# Install cargo-audit | ||
cargo install cargo-audit | ||
- name: clippy | ||
run: cargo clippy -- -D warnings | ||
|
||
- name: rustfmt | ||
run: cargo fmt -- --check | ||
|
||
- name: cargo-audit | ||
run: cargo audit |
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,43 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'arbi/**' | ||
- 'examples/**' | ||
|
||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'arbi/**' | ||
- 'examples/**' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
shell: bash | ||
|
||
- name: Run tests | ||
run: | | ||
cargo test --release | ||
# # Run examples | ||
# for example in examples/*; do | ||
# if [ -f "$example/Cargo.toml" ]; then | ||
# cargo run --release --manifest-path "$example/Cargo.toml" | ||
# fi | ||
# done | ||
shell: bash |
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,2 @@ | ||
[build] | ||
rustdocflags = [ "--html-in-header", "./arbi/doc/header.html" ] |
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
Oops, something went wrong.