diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9928782fd5..889b9a053c 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 6b6585624f..112e7cbeaf 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()