Build against latest matrix-sdk-crypto #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build against latest matrix-sdk-crypto | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '22 1 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test-against-latest-matrix-sdk-crypto: | |
name: test-against-latest-matrix-sdk-crypto | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-unknown-unknown | |
- name: Load cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
save-if: ${{ github.ref == 'refs/heads/main' }} | |
- name: Update to the latest matrix-sdk-crypto version | |
run: cargo update matrix-sdk-crypto | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.0 | |
- name: Install yarn | |
run: npm install --global yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Build the WebAssembly + JavaScript binding | |
run: yarn build | |
- name: Test the JavaScript binding | |
run: yarn test |