Skip to content

Simplify native calls #294

Simplify native calls

Simplify native calls #294

Workflow file for this run

name: Rust
on:
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUST_LOG: info
RUST_BACKTRACE: 1
jobs:
test:
name: Test Laythe with Rust ${{ matrix.rust }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] # windows-latest failing cwd test
rust: [stable, nightly]
steps:
- uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- run: cargo test
lint:
name: Lint Laythe
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: cargo clippy
bench:
name: Benching Laythe with Rust ${{ matrix.rust }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust: [stable, nightly]
steps:
- uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- run: cargo bench --workspace --all