mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-24 08:59:10 +00:00
Add more targets to CI for rust bindings (#390)
This commit is contained in:
parent
4607d3f4c2
commit
5efe8d092f
34
.github/workflows/rust-tests.yml
vendored
34
.github/workflows/rust-tests.yml
vendored
@ -18,27 +18,47 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: taiki-e/install-action@cargo-hack
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: "./bindings/rust"
|
||||||
- name: cargo hack
|
- name: cargo hack
|
||||||
working-directory: bindings/rust
|
working-directory: bindings/rust
|
||||||
run: cargo hack check --feature-powerset --depth 2
|
run: cargo hack check --feature-powerset --depth 2
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.host }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
include:
|
||||||
- ubuntu-latest
|
- host: ubuntu-latest
|
||||||
- windows-latest
|
target: x86_64-unknown-linux-gnu
|
||||||
- macos-latest
|
- host: windows-latest
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
- host: macos-14
|
||||||
|
target: aarch64-apple-darwin
|
||||||
|
- host: macos-latest
|
||||||
|
target: x86_64-apple-darwin
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
|
- uses: taiki-e/setup-cross-toolchain-action@v1
|
||||||
|
with:
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: "./bindings/rust"
|
||||||
|
cache-on-failure: true
|
||||||
|
|
||||||
- name: Build and Test
|
- name: Build and Test
|
||||||
working-directory: bindings/rust
|
working-directory: bindings/rust
|
||||||
run: cargo test
|
run: cargo test --target ${{ matrix.target }}
|
||||||
- name: Benchmark
|
- name: Benchmark
|
||||||
working-directory: bindings/rust
|
working-directory: bindings/rust
|
||||||
run: cargo bench
|
run: cargo bench --target ${{ matrix.target }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user