Skip to content

Commit

Permalink
Use lld linker in aarch64 pipeline to improve CI stability (#241)
Browse files Browse the repository at this point in the history
Also, split compilation of casr into multiple targets
  • Loading branch information
SweetVishnya authored Feb 10, 2025
1 parent 694bdf1 commit 3b8461f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ jobs:
install: |
export CARGO_TERM_COLOR=always
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
apt-get update && apt-get install -y gdb pip curl python3.12-dev clang llvm build-essential
apt-get update && apt-get install -y gdb pip curl python3.12-dev clang llvm build-essential binutils lld
curl https://sh.rustup.rs -o rustup.sh && chmod +x rustup.sh && \
./rustup.sh -y && rm rustup.sh
run: |
export PATH=/root/.cargo/bin:$PATH
export CARGO_TERM_COLOR=always
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
cargo build --release --verbose
export CARGO_BUILD_JOBS=1
export RUSTFLAGS="-C link-arg=-fuse-ld=lld"
cargo build --release --verbose --package capstone
cargo build --release --verbose --package rayon
cargo build --release --verbose --package libcasr
cargo build --release --verbose --package casr
cargo test --release --verbose --lib -- --test-threads 1
cargo test --release --verbose --package casr

0 comments on commit 3b8461f

Please sign in to comment.