* 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
29 lines
841 B
YAML
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
|
|
|