[MM-66932] Add Rust build pipeline and OpenMLS library #6201
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'release*' | |
| pull_request: | |
| permissions: | |
| pull-requests: write | |
| env: | |
| NODE_VERSION: 22.14.0 | |
| TERM: xterm | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: ci/checkout-repo | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: ci/test | |
| uses: ./.github/actions/test | |
| - name: ci/test-coverage | |
| if: github.event_name == 'pull_request' || github.ref_name == 'main' | |
| uses: ./.github/actions/test-coverage | |
| with: | |
| run_id: ${{ github.run_id }} | |
| test-e2ee: | |
| runs-on: macos-latest | |
| steps: | |
| - name: ci/checkout-repo | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: ci/setup-rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| # Install both simulator targets - build.sh picks the right one | |
| target: aarch64-apple-ios,aarch64-apple-ios-sim,x86_64-apple-ios | |
| cache: false | |
| - name: ci/prepare-node-deps | |
| uses: ./.github/actions/prepare-node-deps | |
| - name: ci/test-rust-unit | |
| shell: bash | |
| run: npm run e2ee:test:rust | |
| - name: ci/build-e2ee | |
| shell: bash | |
| run: npm run e2ee:build | |
| - name: ci/test-e2ee-ios | |
| shell: bash | |
| run: npm run e2ee:test:ios |