Skip to content

merge: Merge pull request #2 from arunaengine/feat/autoirokle #9

merge: Merge pull request #2 from arunaengine/feat/autoirokle

merge: Merge pull request #2 from arunaengine/feat/autoirokle #9

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.95.0
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --check
- run: cargo clippy --locked --all-targets -- -D warnings
- run: cargo test --locked
- run: cargo check --locked --all-features --all-targets
- run: cargo clippy --locked --all-features --all-targets -- -D warnings
- run: cargo test --locked --all-features --lib --test derive
- run: cargo test --locked --all-features --doc
- run: cargo doc --locked --all-features --no-deps
patchbay:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.95.0
- uses: Swatinem/rust-cache@v2
- name: Install patchbay Linux dependencies
run: sudo apt-get update && sudo apt-get install -y iproute2 nftables
- name: Enable unprivileged user namespaces best-effort
run: |
sudo sysctl -w kernel.unprivileged_userns_clone=1 || true
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
sudo sysctl -w user.max_user_namespaces=28633 || true
- run: cargo test --locked --features iroh --test iroh_patchbay_sync -- --nocapture --test-threads=1