Skip to content

feat: update pipeline to allow more build targets #35

feat: update pipeline to allow more build targets

feat: update pipeline to allow more build targets #35

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: cargo check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check
build-targets:
name: Build targets
uses: ./.github/workflows/_build_target.yml
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, x86_64-apple-darwin]
with:
target: ${{ matrix.target }}
channel: stable