From 5f5f31beabacb908deec77c29689eb0367c5ce8d Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Thu, 31 Oct 2019 11:45:42 +0100 Subject: [PATCH] Treat all warnings as errors by default (#161) * Treat all warnings as errors in the CI * Build only in release mode --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2b2897238..6f1a9923f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,9 @@ jobs: with: command: fmt args: --all -- --check - - name: Build debug - uses: actions-rs/cargo@v1 - with: - command: build - - name: Build release + - name: Build + env: + RUSTFLAGS: "-D warnings" uses: actions-rs/cargo@v1 with: command: build @@ -60,11 +58,12 @@ jobs: profile: minimal toolchain: ${{ matrix.rust }} override: true - - name: Build debug + - name: Build continue-on-error: true uses: actions-rs/cargo@v1 with: command: build + args: --release test: name: Test