fix(ci): vendor openssl for macos cross checks

This commit is contained in:
Kayshen-X 2026-05-31 17:53:17 +08:00
parent c9b0301ec7
commit 921a81d522
2 changed files with 13 additions and 2 deletions

10
Cargo.lock generated
View file

@ -3071,6 +3071,15 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
[[package]]
name = "openssl-src"
version = "300.6.0+3.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8e8cbfd3a4a8c8f089147fd7aaa33cf8c7450c4d09f8f80698a0cf093abeff4"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "openssl-sys" name = "openssl-sys"
version = "0.9.116" version = "0.9.116"
@ -3079,6 +3088,7 @@ checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"
dependencies = [ dependencies = [
"cc", "cc",
"libc", "libc",
"openssl-src",
"pkg-config", "pkg-config",
"vcpkg", "vcpkg",
] ]

View file

@ -14,8 +14,9 @@ description = "Git-backed version control for OpenPencil documents"
[dependencies] [dependencies]
# In-process libgit2. `vendored-libgit2` builds + statically links # In-process libgit2. `vendored-libgit2` builds + statically links
# libgit2 from source (cmake + cc), so the shipped binary carries its # libgit2 from source (cmake + cc), so the shipped binary carries its
# own git engine. Keeps the default `https` / `ssh` transports. # own git engine. `vendored-openssl` keeps cross-arch macOS checks from
git2 = { version = "=0.20.4", features = ["vendored-libgit2"] } # depending on a runner-local OpenSSL installation for the target arch.
git2 = { version = "=0.20.4", features = ["vendored-libgit2", "vendored-openssl"] }
thiserror = { workspace = true } thiserror = { workspace = true }
# Credential store (`auth.rs`) persistence — the host-keyed token / # Credential store (`auth.rs`) persistence — the host-keyed token /
# SSH-key table is serialized to a JSON file. # SSH-key table is serialized to a JSON file.