diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9928782fd52a4e0342b9bdd282a6aad6743ba80f..889b9a053c216abc32bd45b36eef431ae274ccf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,7 +147,8 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} - name: cargo clippy - run: ./script/clippy + # Windows can't run shell scripts, so we need to use `cargo xtask`. + run: cargo xtask clippy - name: Build Zed run: cargo build -p zed diff --git a/crates/remote_server/src/main.rs b/crates/remote_server/src/main.rs index 6b6585624fc17e9ca39e3d6be14d6dffb6447cc6..112e7cbeaf4e381c4a139db079377bd26d2e157e 100644 --- a/crates/remote_server/src/main.rs +++ b/crates/remote_server/src/main.rs @@ -1,3 +1,5 @@ +#![cfg_attr(target_os = "windows", allow(unused, dead_code))] + use fs::RealFs; use futures::channel::mpsc; use gpui::Context as _; @@ -15,6 +17,12 @@ use std::{ sync::Arc, }; +#[cfg(windows)] +fn main() { + unimplemented!() +} + +#[cfg(not(windows))] fn main() { env::set_var("RUST_BACKTRACE", "1"); env_logger::builder()