pod2/.github/workflows/build.yml
Rob Knight d6c4d9e943
Try actions-rust-lang/setup-rust-toolchain for possibly faster test b… (#364)
* Try actions-rust-lang/setup-rust-toolchain for possibly faster test builds

* Use toolchain from toml file

* Use the same action for the build job
2025-07-29 10:21:13 -07:00

29 lines
841 B
YAML

name: Rust Build with features
on:
pull_request:
branches: [ main ]
types: [ready_for_review, opened, synchronize, reopened]
push:
branches: [ main ]
jobs:
test:
if: github.event.pull_request.draft == false
name: Rust tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build default
run: cargo build
- name: Build non-zk # check without the zk feature enabled
run: cargo build --no-default-features --features backend_plonky2,mem_cache
- name: Build metrics
run: cargo build --features metrics
- name: Build time
run: cargo build --features time
- name: Build disk_cache
run: cargo build --no-default-features --features backend_plonky2,zk,disk_cache