Skip to content

first commit

first commit #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
- name: Build workspace
run: cargo build --workspace --exclude forge --verbose
- name: Run tests
run: cargo test --workspace --exclude forge --verbose
- name: Lint with clippy
run: cargo clippy --workspace --exclude forge -- -D warnings
- name: Check formatting
run: cargo fmt --all --check
- name: Build forge with JIT feature
run: cargo build -p forge --features jit || echo "LLVM not installed, skipping"