diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index c047cf6f9..c963074dd 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -203,6 +203,7 @@ jobs: - check-gitbutler-core - check-gitbutler-changeset - check-gitbutler-git + - check-rust-windows runs-on: ubuntu-latest steps: - name: Decide whether the needed jobs succeeded or failed @@ -211,3 +212,12 @@ jobs: allowed-skips: ${{ toJSON(needs) }} jobs: ${{ toJSON(needs) }} + check-rust-windows: + needs: changes + runs-on: windows-latest + if: ${{ needs.changes.outputs.rust == 'true' }} + steps: + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 + - name: "cargo check" + run: cargo check --all --bins --examples diff --git a/crates/gitbutler-git/Cargo.toml b/crates/gitbutler-git/Cargo.toml index 49b446cee..095c2bfc8 100644 --- a/crates/gitbutler-git/Cargo.toml +++ b/crates/gitbutler-git/Cargo.toml @@ -26,7 +26,7 @@ tokio = ["dep:tokio"] [dependencies] thiserror.workspace = true serde = { workspace = true, optional = true } -tokio = { workspace = true, optional = true, features = ["process", "time", "io-util", "net", "fs" ] } +tokio = { workspace = true, optional = true, features = ["process", "time", "io-util", "net", "fs"] } rand = "0.8.5" futures = "0.3.30" sysinfo = "0.30.5" @@ -36,6 +36,7 @@ nix = { version = "0.28.0", features = ["process", "socket", "user"] } [target."cfg(windows)".dependencies] winapi = { version = "0.3.9", features = ["winbase", "namedpipeapi"] } +tokio = { workspace = true, optional = true, features = ["sync"] } # synchronous named pipes for the askpass utility windows-named-pipe = "0.1.0"