Skip to content

Commit

Permalink
ci: Add wasm job for matrix-sdk-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored and poljar committed Jan 17, 2025
1 parent e077980 commit 993c103
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ jobs:
- name: '[m], no-default'
cmd: matrix-sdk-no-default

- name: '[m]-ui'
cmd: matrix-sdk-ui
check_only: true

- name: '[m]-indexeddb'
cmd: indexeddb

Expand All @@ -248,6 +252,7 @@ jobs:

- name: Install wasm-pack
uses: qmaru/[email protected]
if: '!matrix.check_only'
with:
version: v0.10.3

Expand Down Expand Up @@ -277,6 +282,7 @@ jobs:
target/debug/xtask ci wasm ${{ matrix.cmd }}
- name: Wasm-Pack test
if: '!matrix.check_only'
run: |
target/debug/xtask ci wasm-pack ${{ matrix.cmd }}
Expand Down
3 changes: 3 additions & 0 deletions xtask/src/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ enum WasmFeatureSet {
MatrixSdkCommon,
/// Check `matrix-sdk` crate with no default features
MatrixSdkNoDefault,
/// Check `matrix-sdk-ui` crate
MatrixSdkUi,
/// Check `matrix-sdk` crate with `indexeddb` feature (but not
/// `e2e-encryption`)
MatrixSdkIndexeddbStoresNoCrypto,
Expand Down Expand Up @@ -303,6 +305,7 @@ fn run_wasm_checks(cmd: Option<WasmFeatureSet>) -> Result<()> {
),
(WasmFeatureSet::MatrixSdkBase, "-p matrix-sdk-base --features js,test-send-sync"),
(WasmFeatureSet::MatrixSdkCommon, "-p matrix-sdk-common --features js"),
(WasmFeatureSet::MatrixSdkUi, "-p matrix-sdk-ui --features js"),
(
WasmFeatureSet::MatrixSdkIndexeddbStoresNoCrypto,
"-p matrix-sdk --no-default-features --features js,indexeddb,rustls-tls",
Expand Down

0 comments on commit 993c103

Please sign in to comment.