Skip to content

Commit d3a9ae9

Browse files
committed
add deps for arm based target
1 parent 8e2abbd commit d3a9ae9

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/cli_release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ jobs:
5555
- name: Add target
5656
run: rustup target add ${{ matrix.target }}
5757

58+
- name: Install Linux ARM dependencies
59+
if: matrix.target == 'aarch64-unknown-linux-gnu'
60+
run: |
61+
sudo apt-get update
62+
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
63+
64+
- name: Set linker for Linux ARM
65+
if: matrix.target == 'aarch64-unknown-linux-gnu'
66+
run: |
67+
echo '[target.aarch64-unknown-linux-gnu]' >> ~/.cargo/config.toml
68+
echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config.toml
69+
5870
- uses: Swatinem/rust-cache@v2
5971
with:
6072
prefix-key: "v0-rust"

0 commit comments

Comments
 (0)