Skip to content

Commit 2ec3f7e

Browse files
committed
Tooling: Fix Rust-Linux check
1 parent 765f5ad commit 2ec3f7e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/check/rust_checks.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,14 @@ func (c *RustTestsLinuxCheck) Run(ctx *CheckContext) error {
189189
return nil
190190
}
191191

192-
// Run tests in a Rust container
192+
// Run tests in a Rust container with GTK dependencies for Tauri
193+
// Use a separate target directory to avoid conflicts with macOS-compiled artifacts
193194
cmd := exec.Command("docker", "run", "--rm",
194195
"-v", rustDir+":/app",
195196
"-w", "/app",
197+
"-e", "CARGO_TARGET_DIR=/tmp/cargo-target",
196198
"rust:latest",
197-
"sh", "-c", "cargo test --no-fail-fast")
199+
"sh", "-c", "apt-get update && apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev && cargo test --no-fail-fast")
198200
output, err := runCommand(cmd, true)
199201
if err != nil {
200202
fmt.Println()

0 commit comments

Comments
 (0)