Skip to content

Commit 9879da5

Browse files
enable musl target builds with vendored libgit2
1 parent b084432 commit 9879da5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363
os: ubuntu-24.04-arm
6464
# os: blacksmith-4vcpu-ubuntu-2404
6565
# os: blacksmith-4vcpu-ubuntu-2404
66-
# - target: x86_64-unknown-linux-musl
67-
# os: ubuntu-24.04
68-
# - target: aarch64-unknown-linux-musl
69-
# os: ubuntu-24.04-arm
66+
- target: x86_64-unknown-linux-musl
67+
os: ubuntu-24.04
68+
- target: aarch64-unknown-linux-musl
69+
os: ubuntu-24.04-arm
7070
steps:
7171
- name: Checkout
7272
uses: actions/checkout@v5

packages/cli/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ reqwest = { workspace = true, features = ["rustls-tls", "trust-dns", "json"] }
8181
tower = { workspace = true }
8282
git2 = "0.20.2"
8383

84+
[target.'cfg(target_env = "musl")'.dependencies]
85+
git2 = { version = "0.20.2", features = ["vendored-libgit2"] }
86+
8487
# path lookup
8588
which = { version = "8.0.0" }
8689

0 commit comments

Comments
 (0)