From 7a2be9e597ea8724e2a311bfb2d9a080f538c17f Mon Sep 17 00:00:00 2001 From: xrelkd <46590321+xrelkd@users.noreply.github.com> Date: Tue, 23 Jan 2024 20:53:39 +0800 Subject: [PATCH] ci(actions): package for `aarch64` and `armv7` (#280) --- .github/workflows/release.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 72387799..48bf11be 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,6 +16,8 @@ env: MAINTAINER: "xrelkd <46590321+xrelkd@users.noreply.github.com>" PACKAGE_NAME: "clipcat" PACKAGE_DESCRIPTION: "Clipboard manager written in Rust Programming Language" + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc jobs: all: @@ -24,9 +26,16 @@ jobs: strategy: matrix: target: + - aarch64-unknown-linux-musl - x86_64-unknown-linux-musl include: + - target: aarch64-unknown-linux-musl + arch_deb: arm64 + arch_rpm: aarch64 + os: ubuntu-latest + target_rustflags: "--codegen linker=aarch64-linux-gnu-gcc" + - target: x86_64-unknown-linux-musl arch_deb: amd64 arch_rpm: x86_64 @@ -50,6 +59,12 @@ jobs: target: ${{ matrix.target }} toolchain: stable + - name: Install AArch64 Toolchain + if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }} + run: | + sudo apt update + sudo apt install -y gcc-aarch64-linux-gnu + - name: Create Package id: package env: