Skip to content

Add Apple Silicon (ARM64) support + macOS cross-compilation #11

Add Apple Silicon (ARM64) support + macOS cross-compilation

Add Apple Silicon (ARM64) support + macOS cross-compilation #11

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: taiki-e/install-action@cargo-make
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Enable unprivileged user namespaces
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Install iperf3
run: sudo apt-get update && sudo apt-get install -y iperf3
- name: Check
run: cargo check --workspace --tests
- name: Test
run: cargo nextest run --workspace
- name: Clippy
run: cargo clippy --workspace --tests -- -D warnings
- name: Format
run: cargo make format-check