Skip to content

Completely remove freebsd #60

Completely remove freebsd

Completely remove freebsd #60

Workflow file for this run

name: Build & Tests
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_test_run:
name: Build and test on ${{ matrix.job.os }} (${{ matrix.job.target }})
runs-on: ${{ matrix.job.os }}
strategy:
fail-fast: false
matrix:
job:
- { target: aarch64-unknown-linux-gnu , os: ubuntu-22.04 }
- { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 }
- { target: x86_64-apple-darwin , os: macos-12 }
- { target: x86_64-pc-windows-msvc , os: windows-2022 }
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.job.target }}
- name: Use cached dependencies
uses: Swatinem/rust-cache@v2
with:
key: "${{ matrix.job.os }}-${{ matrix.job.target }}"
- name: Build
run: cargo build --workspace
- name: Test
run: cargo test --workspace
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use cached dependencies
uses: Swatinem/rust-cache@v2
with:
key: "ubuntu-22.04-x86_64-unknown-linux-gnu"
- name: Install clippy and rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Run clippy
run: cargo clippy --all-features -- -Dwarnings
- name: Run fmt
run: cargo fmt --check