-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): try to fix arm64 deb packaging
Signed-off-by: Nathanael DEMACON <[email protected]>
- Loading branch information
1 parent
70e5fc1
commit b140312
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Configure dpkg for arm64 | ||
if: ${{ matrix.target.arch == 'arm64' }} | ||
run: | | ||
sudo dpkg --add-architecture arm64 | ||
sudo apt-get update | ||
sudo apt-get install -y g++-aarch64-linux-gnu binutils-aarch64-linux-gnu | ||
- name: Install toolchain | ||
run: rustup toolchain install stable --profile minimal --target ${{ matrix.target.rust-target }} --no-self-update | ||
|
||
|
@@ -122,6 +129,17 @@ jobs: | |
- name: Install cargo-deb | ||
run: cargo install cargo-deb | ||
|
||
- name: Configure cargo for arm64 | ||
if: ${{ matrix.target.arch == 'arm64' }} | ||
run: | | ||
mkdir -p ~/.cargo/ | ||
touch ~/.cargo/config | ||
echo "[target.aarch64-unknown-linux-gnu]\nobjcopy = { path = \"aarch64-linux-gnu-objcopy\" }\nstrip = { path = \"aarch64-linux-gnu-strip\" }\n" > ~/.cargo/config | ||
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc | ||
export CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc | ||
export CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++ | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- uses: robinraju/[email protected] | ||
|