Skip to content

Remove unnecessary target pointer width check. #141

Remove unnecessary target pointer width check.

Remove unnecessary target pointer width check. #141

Workflow file for this run

name: Rust
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build with latest stable Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get update && sudo apt install libdbus-1-dev pkg-config
- name: Install latest stable Rust
run: rustup set profile default && rustup default stable && rustup update
- name: Check code formatting
run: cargo fmt -- --check
- name: Build
run: cargo build --all-features --all-targets --quiet
- name: Build documentation
run: cargo doc --no-deps --quiet
- name: Code analysis
run: cargo clippy --all-features --all-targets --quiet
- name: Run tests (debug)
run: cargo test --quiet
- name: Run tests (release)
run: cargo test --release --quiet
- name: Run agg-speed
run: |
cargo build --quiet --release --bin agg-speed
RUST_LOG=info cargo run --quiet --release --bin agg-speed -- server --tls --no-monitor --oneshot &
sleep 1
RUST_LOG=info cargo run --quiet --release --bin agg-speed -- client --tls --no-monitor --time 15 --tcp localhost
- name: Security vulnerability audit
run: |
cargo install --quiet cargo-audit
cargo audit --quiet
build-windows:
name: Build with latest stable Rust on Windows
runs-on: windows-latest
steps:
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install latest stable Rust
run: rustup set profile default && rustup default stable && rustup update
- name: Build
run: cargo build --features tcp,tls,websocket,cli,raw-speed-cli,speed,monitor,dump --all-targets --quiet
- name: Run tests (debug)
run: cargo test --quiet
build-msrv:
name: Build with minimum supported Rust versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get update && sudo apt install libdbus-1-dev pkg-config
- name: Install Rust 1.75.0
run: rustup toolchain install 1.75.0
- name: Build aggligator and aggligator-util with Rust 1.75.0
run: cargo +1.75.0 build --all-features --all-targets --quiet