Skip to content

Commit

Permalink
chore(release): try to fix arm64 deb packaging
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael DEMACON <[email protected]>
  • Loading branch information
quantumsheep committed Aug 24, 2024
1 parent 70e5fc1 commit b140312
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]
Expand Down

0 comments on commit b140312

Please sign in to comment.