2023-03-13 10:42:12 +00:00
|
|
|
name: Rust
|
2023-01-12 17:50:12 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-09-05 22:06:03 +00:00
|
|
|
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
|
|
|
|
|
2023-03-13 10:42:12 +00:00
|
|
|
tests:
|
2023-04-05 18:33:37 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
- macos-latest
|
2023-01-12 17:50:12 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-09-05 22:06:03 +00:00
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
2023-10-18 18:31:55 +00:00
|
|
|
- name: Build and Test
|
2023-03-29 06:59:52 +00:00
|
|
|
working-directory: bindings/rust
|
2023-10-18 18:31:55 +00:00
|
|
|
run: cargo test
|
2023-03-29 06:59:52 +00:00
|
|
|
- name: Benchmark
|
|
|
|
working-directory: bindings/rust
|
|
|
|
run: cargo bench
|