Treat all warnings as errors by default (#161)
* Treat all warnings as errors in the CI * Build only in release mode
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -33,11 +33,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
args: --all -- --check
|
||||||
- name: Build debug
|
- name: Build
|
||||||
uses: actions-rs/cargo@v1
|
env:
|
||||||
with:
|
RUSTFLAGS: "-D warnings"
|
||||||
command: build
|
|
||||||
- name: Build release
|
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
@@ -60,11 +58,12 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
override: true
|
override: true
|
||||||
- name: Build debug
|
- name: Build
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
|
args: --release
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
|
|||||||
Reference in New Issue
Block a user