Repository: axodotdev/cargo-dist (rust)

Issue:
`dist.dependencies.apt` config is ignored when using `cargo-xwin`
## Reproduction

dist-workspace.toml:
```
[dist]
targets = ["x86_64-unknown-linux-gnu", "aarch64-pc-windows-msvc"]

[dist.dependencies.apt]
libllvm18 = '*'
```

## Observations

The plan section for `x86_64-unknown-linux-gnu` contains (as expected):
```
"packages_install": "sudo apt-get update\nsudo apt-get install libllvm18\nif ! command -v cargo-zigbuild > /dev/null 2>&1; then\n  if ! command -v pip3 > /dev/null 2>&1; then\n    dnf install --assumeyes python3-pip\n    pip3 install --upgrade pip\n  fi\n  pip3 install cargo-zigbuild\nfi"
```

The plan section for `aarch64-pc-windows-msvc` contains (missing dependencies):
```
"packages_install": "if ! command -v cargo-xwin > /dev/null 2>&1; then\n  if ! command -v pip3 > /dev/null 2>&1; then\n    dnf install --assumeyes python3-pip\n    pip3 install --upgrade pip\n  fi\n  pip3 install cargo-xwin\nfi",
```


Pull request description:
fix: allow installing apt packages in xwin
The default xwin cross-compile container is apt-based; we should allow apt packages to be installed here without extra configuration on the user's part.

Fixes #1670.

Patch:
diff --git a/cargo-dist/src/backend/ci/github.rs b/cargo-dist/src/backend/ci/github.rs
index 9661ecf2..26e24167 100644
--- a/cargo-dist/src/backend/ci/github.rs
+++ b/cargo-dist/src/backend/ci/github.rs
@@ -682,7 +682,7 @@ fn cargo_xwin() -> GithubRunnerConfig {
         container: Some(cargo_dist_schema::ContainerConfig {
             image: ContainerImageRef::from_str("messense/cargo-xwin").to_owned(),
             host: targets::TARGET_X64_LINUX_MUSL.to_owned(),
-            package_manager: None,
+            package_manager: Some(cargo_dist_schema::PackageManager::Apt),
         }),
     }
 }


Test patch:
diff --git a/cargo-dist/tests/snapshots/axolotlsay_cross2.snap b/cargo-dist/tests/snapshots/axolotlsay_cross2.snap
index 6c263dda..f8bd3b56 100644
--- a/cargo-dist/tests/snapshots/axolotlsay_cross2.snap
+++ b/cargo-dist/tests/snapshots/axolotlsay_cross2.snap
@@ -2001,7 +2001,7 @@ CENSORED (see https://github.com/axodotdev/cargo-dist/issues/1477)  source.tar.g
             "container": {
               "image": "messense/cargo-xwin",
               "host": "x86_64-unknown-linux-musl",
-              "package_manager": null
+              "package_manager": "apt"
             },
             "install_dist": {
               "shell": "sh",