first commit #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |