From d1e49bd0b567a00dc888c867b882efb4c38b4c44 Mon Sep 17 00:00:00 2001 From: "Christopher L. Crutchfield" Date: Sat, 16 Nov 2024 17:34:00 -0800 Subject: [PATCH] fix: compile arm against musl --- .github/workflows/rust.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ff29d3a..cfa18a2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,15 +21,11 @@ jobs: sudo apt-get update sudo apt-get install -y libdbus-1-dev \ pkg-config - - name: Install Cross + - name: Setup Cargo Config run: | - cargo install cross --git https://github.com/cross-rs/cross - sudo systemctl start docker - # - name: Setup Cargo Config - # run: | - # mkdir -p .cargo - # echo "[target.aarch64-unknown-linux-gnu]" >> ./.cargo/config.toml - # echo 'linker = "aarch64-linux-gnu-gcc"' >> ./.cargo/config.toml + mkdir -p .cargo + echo "[target.aarch64-unknown-linux-gnu]" >> ./.cargo/config.toml + echo 'linker = "aarch64-linux-gnu-gcc"' >> ./.cargo/config.toml - name: Install Rust Toolchains run: rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu - name: Run tests @@ -37,7 +33,7 @@ jobs: - name: Build run: | cargo build --verbose --release --target=x86_64-unknown-linux-gnu - cross build --verbose --release --target=aarch64-unknown-linux-gnu + cargo build --verbose --release --target=aarch64-unknown-linux-musl - name: Archive Linux x86_64 Results uses: actions/upload-artifact@v4 with: