Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CI job that runs daily against the latest matrix-sdk-crypto version #150

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/latest-matrix-sdk-crypto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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
Loading