2023-07-16 02:22:14 -04:00
|
|
|
name: Test-Linux
|
2022-12-27 09:32:52 +05:30
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-12-28 14:59:07 +05:30
|
|
|
branches: [ main ]
|
2022-12-27 09:32:52 +05:30
|
|
|
pull_request:
|
2022-12-28 14:59:07 +05:30
|
|
|
branches: [ main ]
|
2022-12-27 09:32:52 +05:30
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
2023-07-16 02:16:03 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
crypto-backend: ['crypto_openssl', 'crypto_rustcrypto', 'crypto_mbedtls']
|
2022-12-27 09:32:52 +05:30
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
2023-07-16 02:16:03 -04:00
|
|
|
run: cd matter; cargo build --verbose --no-default-features --features ${{matrix.crypto-backend}}
|
2022-12-27 09:32:52 +05:30
|
|
|
- name: Run tests
|
2023-07-16 02:16:03 -04:00
|
|
|
run: cd matter; cargo test --verbose --no-default-features --features ${{matrix.crypto-backend}} -- --test-threads=1
|