diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d48e37..009a515 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,8 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ src-tauri/target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }} + notey-cli/target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock', 'notey-cli/Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- @@ -100,6 +101,14 @@ jobs: if: runner.os == 'Linux' run: npx tauri build --debug --no-bundle + - name: Build notey-cli (Linux) + # The CLI live-sync E2E suite spawns the standalone `notey` binary from + # notey-cli/target/debug/. It's a separate, workspace-less crate not built + # by the tauri build above, so build it explicitly before E2E. + if: runner.os == 'Linux' + working-directory: notey-cli + run: cargo build + - name: E2E tests (Linux) if: runner.os == 'Linux' # WebKitGTK's accelerated compositing / DMABUF renderer crashes the web diff --git a/src-tauri/src/ipc/socket_server.rs b/src-tauri/src/ipc/socket_server.rs index d2d0be0..9441205 100644 --- a/src-tauri/src/ipc/socket_server.rs +++ b/src-tauri/src/ipc/socket_server.rs @@ -400,7 +400,7 @@ fn raw_conn(stream: &Stream) -> RawConn { } #[cfg(windows)] Stream::NamedPipe(s) => { - use std::os::windows::io::AsHandle; + use std::os::windows::io::{AsHandle, AsRawHandle}; RawConn { handle: s.as_handle().as_raw_handle(), }