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 9d10e72
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 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,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 .cargo
cat << EOS > .cargo/config.toml
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
EOS
cat .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)
Expand Down

0 comments on commit 9d10e72

Please sign in to comment.