From 751f2a45000e51f72c3247d7259882a0b5db224d Mon Sep 17 00:00:00 2001 From: Noritada Kobayashi Date: Fri, 15 Dec 2023 12:44:03 +0900 Subject: [PATCH] CI/CD: add a target architecture `aarch64-unknown-linux-musl` --- .github/workflows/cd.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 58c17ab..02fa26e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,6 +13,8 @@ jobs: include: - os: ubuntu-latest target: x86_64-unknown-linux-musl + - os: ubuntu-latest + target: aarch64-unknown-linux-musl - os: windows-latest target: x86_64-pc-windows-msvc - os: macOS-latest @@ -34,8 +36,14 @@ jobs: - name: Setup musl if: matrix.os == 'ubuntu-latest' run: | - rustup target add x86_64-unknown-linux-musl + rustup target add ${{ matrix.target }} sudo apt -qq install musl-tools + mkdir -p cli/.cargo + echo << EOS > cli/.cargo/config.toml + [target.aarch64-unknown-linux-musl] + linker = "aarch64-linux-gnu-gcc" + EOS + cat cli/.cargo/config.toml - name: Build run: cargo build --all --release --target ${{ matrix.target }} --verbose - name: Create an archive to maintain the file permission (in non-Windows environments)