Filter out custom C++ library (#244) #489
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: aarch64 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ubuntu-latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: uraimo/run-on-arch-action@v2 | |
name: Build and Run Tests | |
with: | |
arch: aarch64 | |
distro: ubuntu_latest | |
dockerRunArgs: | | |
--privileged | |
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 binutils lld lua5.4 | |
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 | |
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 |