From 536a2d57992e84df8bcc7ebec81eb1586b1e26df Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Sat, 21 Nov 2020 22:03:00 +0800 Subject: [PATCH] Build on action with mostly features enabled --- .github/workflows/build-and-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 579561fc..cc51dbed 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -24,6 +24,12 @@ jobs: ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build & Test (Default) + run: cargo test --verbose --no-fail-fast + - name: Build & Test (--no-default-feature) + run: cargo test --verbose --no-default-feature --no-fail-fast + - name: Build with All Features Enabled + run: cargo build --verbose --features "local-redir local-dns local-http-rustls dns-over-tls dns-over-https" build-windows: runs-on: windows-latest @@ -37,6 +43,12 @@ jobs: ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build & Test (Default) + run: cargo test --verbose --no-fail-fast + - name: Build & Test (--no-default-feature) + run: cargo test --verbose --no-default-feature --no-fail-fast + - name: Build with All Features Enabled + run: cargo build --verbose --features "local-dns local-http-rustls dns-over-tls dns-over-https" build-macos: runs-on: macos-latest @@ -55,3 +67,9 @@ jobs: ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build & Test (Default) + run: cargo test --verbose --no-fail-fast + - name: Build & Test (--no-default-feature) + run: cargo test --verbose --no-default-feature --no-fail-fast + - name: Build with All Features Enabled + run: cargo build --verbose --features "local-redir local-dns local-http-rustls dns-over-tls dns-over-https"