[casr-python][casr-java] Add sub-tool option (#115) #560
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Code Style | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: RUSTFLAGS="-Dwarnings" cargo clippy --all-features --all --tests | |
- name: Build | |
run: cargo build --all-features --verbose | |
- name: Run tests | |
run: | | |
sudo apt update && sudo apt install -y gdb pip curl python3.10-dev llvm \ | |
openjdk-17-jdk | |
pip3 install atheris | |
curl https://sh.rustup.rs -o rustup.sh && chmod +x rustup.sh && \ | |
./rustup.sh -y && rm rustup.sh | |
rustup install nightly | |
export PATH=/root/.cargo/bin:$PATH | |
cargo install cargo-fuzz | |
cargo test --release --verbose | |
ubuntu-aarch64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- 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.10-dev clang llvm build-essential | |
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 --all-features --release --verbose | |
cargo test --release --verbose | |
ubuntu-riscv64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: uraimo/run-on-arch-action@v2 | |
name: Build and Run Tests | |
with: | |
arch: riscv64 | |
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.10-dev clang llvm build-essential | |
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 | |
cargo test --release --verbose |