From 3a6f1bec7949698e259f69a85efbf3bc8524293b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Wed, 4 Oct 2023 08:45:14 +0200 Subject: [PATCH] ci: enable wireguard on linux only in CI --- .github/workflows/ci-build.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index febfe13e5a..1104bc1a3c 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -72,36 +72,37 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --workspace + # Enable wireguard by default on linux only + args: --workspace --features wireguard - name: Build all examples uses: actions-rs/cargo@v1 with: command: build - args: --workspace --examples + args: --workspace --examples --features wireguard - name: Run all tests uses: actions-rs/cargo@v1 with: command: test - args: --workspace + args: --workspace --features wireguard - name: Run expensive tests if: github.ref == 'refs/heads/develop' || github.event.pull_request.base.ref == 'develop' || github.event.pull_request.base.ref == 'master' uses: actions-rs/cargo@v1 with: command: test - args: --workspace -- --ignored + args: --workspace --features wireguard -- --ignored - name: Annotate with clippy checks uses: actions-rs/clippy-check@v1 continue-on-error: true with: token: ${{ secrets.GITHUB_TOKEN }} - args: --workspace + args: --workspace --features wireguard - name: Clippy uses: actions-rs/cargo@v1 with: command: clippy - args: --workspace --all-targets -- -D warnings + args: --workspace --all-targets --features wireguard -- -D warnings