Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: zig build test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.17.1
- run: zig build test --summary all
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ ARCH=aarch64 sh tests/lab/syn_lab.sh # two containers on Docker bridges
ARCH=aarch64 sh tests/bench/capture_bench.sh
```

GitHub Actions runs `zig build test` on Linux and macOS for every pull
request and every push to `main` (`.github/workflows/ci.yml`). The labs
and benchmarks need Docker and root inside containers, so they run
locally, not in CI.

The labs need Docker and run only inside throwaway containers and networks.
They never touch the host's routing, ARP, DNS or firewall.

Expand Down
Loading