Skip to content

Commit bdbd193

Browse files
committed
Revert "fix(build): install bindgen-cli on CI hosts for ARM builds"
This reverts commit b4dec18.
1 parent b4dec18 commit bdbd193

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ jobs:
8080
- if: matrix.runs-on == 'ubuntu-latest'
8181
uses: taiki-e/install-action@0aa4f22591557b744fe31e55dbfcdfea74a073f7 # v2
8282
with: { tool: cross }
83-
- if: matrix.runs-on == 'ubuntu-latest' && (contains(matrix.target, 'arm') || contains(matrix.target, 'aarch64'))
84-
run: cargo install --force --locked bindgen-cli
8583
- name: build-tarball
8684
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
8785
with:

Cross.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
11
[build.env]
22
passthrough = ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY"]
3+
4+
[target.armv7-unknown-linux-gnueabi]
5+
pre-build = [
6+
"apt-get update && apt-get --assume-yes install libclang-dev",
7+
"$CARGO install --force --locked bindgen-cli",
8+
]
9+
10+
[target.armv7-unknown-linux-musleabi]
11+
pre-build = [
12+
"apt-get update && apt-get --assume-yes install libclang-dev",
13+
"$CARGO install --force --locked bindgen-cli",
14+
]
15+
16+
[target.aarch64-unknown-linux-gnu]
17+
pre-build = [
18+
"apt-get update && apt-get --assume-yes install libclang-dev",
19+
"$CARGO install --force --locked bindgen-cli",
20+
]
21+
22+
[target.aarch64-unknown-linux-musl]
23+
pre-build = [
24+
"apt-get update && apt-get --assume-yes install libclang-dev",
25+
"$CARGO install --force --locked bindgen-cli",
26+
]
27+
28+
[target.x86_64-unknown-linux-gnu]
29+
pre-build = [
30+
"apt-get update && apt-get --assume-yes install libclang-dev",
31+
"$CARGO install --force --locked bindgen-cli",
32+
]
33+
34+
[target.x86_64-unknown-linux-musl]
35+
pre-build = [
36+
"apt-get update && apt-get --assume-yes install libclang-dev",
37+
"$CARGO install --force --locked bindgen-cli",
38+
]

0 commit comments

Comments
 (0)