Skip to content

Merge pull request #37 from drdo/bump-0.2.0 #34

Merge pull request #37 from drdo/bump-0.2.0

Merge pull request #37 from drdo/bump-0.2.0 #34

Workflow file for this run

name: Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build-linux-amd64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Rustfmt Check
run: cargo fmt --check
- name: Add x86_64-unknown-linux-musl target
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -y update
sudo apt-get -y install musl-dev musl-tools
- name: Build
run: cargo build --target=x86_64-unknown-linux-musl --verbose
- name: Run tests
run: cargo test --verbose
- name: Build benches
run: cargo bench --features bench --no-run
build-linux-arm64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install cross
run: cargo install cross
- name: Build
run: cross build --target aarch64-unknown-linux-musl --verbose
build-darwin-amd64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
build-darwin-arm64:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose