name: CI on: push: pull_request: env: CARGO_TERM_COLOR: always jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: { components: "rustfmt, clippy" } - uses: Swatinem/rust-cache@v2 - run: cargo fmt --all -- --check - run: cargo clippy --workspace --all-targets --all-features -- -D warnings - run: cargo test --workspace --all-features - run: cargo build --workspace --release - name: e2e with BIND tools run: | sudo apt-get update && sudo apt-get install -y dnsutils ./scripts/e2e.sh - name: secret scan (no keys committed) run: "! grep -rEn --include='*.yaml' --include='*.yml' 'secret: \"base64:' config/ deploy/" audit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo install cargo-deny --locked - run: cargo deny check arm64: runs-on: ubuntu-24.04-arm steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo build --workspace --release - run: cargo test --workspace musl: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: { targets: x86_64-unknown-linux-musl } - run: sudo apt-get update && sudo apt-get install -y musl-tools - run: cargo build --release --target x86_64-unknown-linux-musl -p dns-cli -p dns-tools tools-cross-platform: strategy: matrix: { os: [macos-latest, windows-latest] } runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo build --release -p dns-tools