Skip to content

Commit

Permalink
CI/CD: add a target architecture aarch64-unknown-linux-musl
Browse files Browse the repository at this point in the history
  • Loading branch information
noritada committed Dec 15, 2023
1 parent b541885 commit c7fa643
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,8 +36,13 @@ 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.${TARGET}]
linker = "aarch64-linux-gnu-gcc"
EOS
- name: Build
run: cargo build --all --release --target ${{ matrix.target }} --verbose
- name: Create an archive to maintain the file permission (in non-Windows environments)
Expand Down

0 comments on commit c7fa643

Please sign in to comment.