Skip to content

Commit

Permalink
fix: compile arm against musl
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed Nov 17, 2024
1 parent 2c1971e commit d1e49bd
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,19 @@ 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
run: cargo test --verbose
- 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:
Expand Down

0 comments on commit d1e49bd

Please sign in to comment.