diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 844f5b93..c075af67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,76 @@ jobs: cd matrix_sdk/examples/wasm_command_bot cargo check --target wasm32-unknown-unknown + test-features: + name: ${{ matrix.name }} + needs: [clippy] + + runs-on: ${{ matrix.os || 'ubuntu-latest' }} + strategy: + matrix: + name: + - linux / features-no-encryption + - linux / features-no-sled + - linux / features-no-encryption-and-sled + - linux / features-sled_cryptostore + - linux / features-rustls-tls + - linux / features-unstable-synapse-quirks + - linux / features-markdown + - linux / features-socks + - linux / features-sso_login + + include: + - name: linux / features-no-encryption + cargo_args: --no-default-features --features "sled_state_store, native-tls" + + - name: linux / features-no-sled + cargo_args: --no-default-features --features "encryption, native-tls" + + - name: linux / features-no-encryption-and-sled + cargo_args: --no-default-features --features "native-tls" + + - name: linux / features-sled_cryptostore + cargo_args: --no-default-features --features "encryption, sled_cryptostore, native-tls" + + - name: linux / features-rustls-tls + cargo_args: --no-default-features --features rustls-tls + + - name: linux / features-unstable-synapse-quirks + cargo_args: --features unstable-synapse-quirks + + - name: linux / features-markdown + cargo_args: --features markdown + + - name: linux / features-socks + cargo_args: --features socks + + - name: linux / features-sso_login + cargo_args: --features sso_login + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Install rust + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust || 'stable' }} + target: ${{ matrix.target }} + profile: minimal + override: true + + - name: Check + uses: actions-rs/cargo@v1 + with: + command: check + args: --manifest-path matrix_sdk/Cargo.toml ${{ matrix.cargo_args }} + + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + args: --manifest-path matrix_sdk/Cargo.toml ${{ matrix.cargo_args }} + test: name: ${{ matrix.name }} needs: [clippy]