diff --git a/.cargo/config.toml b/.cargo/config.toml index 0d9cc47..4bb0509 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,7 @@ # for local testing [patch.crates-io] kble-socket = { path = "./kble-socket" } + +# cross compile +[target.aarch64-unknown-linux-musl] +linker = "aarch64-linux-gnu-gcc" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4704b43..1c0a3d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: matrix: target: - x86_64-unknown-linux-musl + - aarch64-unknown-linux-musl steps: - uses: actions/checkout@v4.2.2 @@ -32,6 +33,11 @@ jobs: sudo apt-get update sudo apt-get install -y musl-tools + - name: install aarch64 linker + if: matrix.target == 'aarch64-unknown-linux-musl' + run: | + sudo apt-get install -y gcc-aarch64-linux-gnu + - name: Get Rust toolchain id: toolchain working-directory: .