c-kzg-4844/.github/workflows/rust-tests.yml

45 lines
1.0 KiB
YAML
Raw Normal View History

name: Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
feature-checks:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- name: cargo hack
working-directory: bindings/rust
run: cargo hack check --feature-powerset --depth 2
tests:
2023-04-05 18:33:37 +00:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
2023-10-18 18:31:55 +00:00
- name: Build and Test
working-directory: bindings/rust
2023-10-18 18:31:55 +00:00
run: cargo test
- name: Benchmark
working-directory: bindings/rust
run: cargo bench