Merge pull request #70 from simlay/refactor-ci-to-use-matrix-for-crypto-backends
Refactored CIs to use a matrix for cryptography backend feature flags.
This commit is contained in:
commit
4b85887f33
3 changed files with 6 additions and 47 deletions
22
.github/workflows/test-linux-openssl.yml
vendored
22
.github/workflows/test-linux-openssl.yml
vendored
|
@ -1,22 +0,0 @@
|
||||||
name: Test-Linux-OpenSSL
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_and_test:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build
|
|
||||||
run: cd matter; cargo build --verbose --no-default-features --features crypto_openssl
|
|
||||||
- name: Run tests
|
|
||||||
run: cd matter; cargo test --verbose --no-default-features --features crypto_openssl -- --test-threads=1
|
|
22
.github/workflows/test-linux-rustcrypto.yml
vendored
22
.github/workflows/test-linux-rustcrypto.yml
vendored
|
@ -1,22 +0,0 @@
|
||||||
name: Test-Linux-RustCrypto
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_and_test:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build
|
|
||||||
run: cd matter; cargo build --verbose --no-default-features --features crypto_rustcrypto
|
|
||||||
- name: Run tests
|
|
||||||
run: cd matter; cargo test --verbose --no-default-features --features crypto_rustcrypto -- --test-threads=1
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: Test-Linux-mbedTLS
|
name: Test-Linux
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -13,10 +13,13 @@ jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
crypto-backend: ['crypto_openssl', 'crypto_rustcrypto', 'crypto_mbedtls']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd matter; cargo build --verbose --no-default-features --features crypto_mbedtls
|
run: cd matter; cargo build --verbose --no-default-features --features ${{matrix.crypto-backend}}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cd matter; cargo test --verbose --no-default-features --features crypto_mbedtls -- --test-threads=1
|
run: cd matter; cargo test --verbose --no-default-features --features ${{matrix.crypto-backend}} -- --test-threads=1
|
Loading…
Add table
Reference in a new issue