Fail on warnings during CI builds (#19149)

Forbid things like
https://github.com/zed-industries/zed/pull/19144#issuecomment-2408871788

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-10-13 13:39:15 +03:00 committed by GitHub
parent 0b10fd5098
commit 6491148196
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,13 +96,13 @@ jobs:
uses: ./.github/actions/run_tests uses: ./.github/actions/run_tests
- name: Build collab - name: Build collab
run: cargo build -p collab run: RUSTFLAGS="-D warnings" cargo build -p collab
- name: Build other binaries and features - name: Build other binaries and features
run: | run: |
cargo build --workspace --bins --all-features RUSTFLAGS="-D warnings" cargo build --workspace --bins --all-features
cargo check -p gpui --features "macos-blade" cargo check -p gpui --features "macos-blade"
cargo build -p remote_server RUSTFLAGS="-D warnings" cargo build -p remote_server
linux_tests: linux_tests:
timeout-minutes: 60 timeout-minutes: 60
@ -134,7 +134,7 @@ jobs:
uses: ./.github/actions/run_tests uses: ./.github/actions/run_tests
- name: Build Zed - name: Build Zed
run: cargo build -p zed run: RUSTFLAGS="-D warnings" cargo build -p zed
build_remote_server: build_remote_server:
timeout-minutes: 60 timeout-minutes: 60
@ -160,7 +160,7 @@ jobs:
run: ./script/remote-server && ./script/install-mold 2.34.0 run: ./script/remote-server && ./script/install-mold 2.34.0
- name: Build Remote Server - name: Build Remote Server
run: cargo build -p remote_server run: RUSTFLAGS="-D warnings" cargo build -p remote_server
# todo(windows): Actually run the tests # todo(windows): Actually run the tests
windows_tests: windows_tests:
@ -184,7 +184,7 @@ jobs:
run: cargo xtask clippy run: cargo xtask clippy
- name: Build Zed - name: Build Zed
run: cargo build -p zed run: $env:RUSTFLAGS="-D warnings"; cargo build
bundle-mac: bundle-mac:
timeout-minutes: 60 timeout-minutes: 60