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