RFC: IpcSharedMemoryVec an appendable data structure which can be shared via a reader #382
Workflow file for this run
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] | |
| pull_request: | |
| workflow_dispatch: | |
| merge_group: | |
| types: [checks_requested] | |
| jobs: | |
| test: | |
| name: ${{ format('{0} {1}', matrix.platform.target, matrix.features)}} | |
| runs-on: ${{ matrix.platform.os }} | |
| env: | |
| RUST_BACKTRACE: 1 | |
| strategy: | |
| matrix: | |
| platform: | |
| - { target: aarch64-apple-darwin, os: macos-14 } | |
| - { target: x86_64-apple-darwin, os: macos-13 } | |
| - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } | |
| - { target: x86_64-pc-windows-msvc, os: windows-latest } | |
| - { target: i686-pc-windows-msvc, os: windows-latest } | |
| features: ["", "force-inprocess", "async"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| targets: ${{ matrix.platform.target }} | |
| - name: rustfmt | |
| run: cargo fmt --check | |
| - name: clippy | |
| uses: servo/actions/cargo-annotation@main | |
| with: | |
| cargo-command: clippy --features '${{ matrix.features }}' --target '${{ matrix.platform.target }}' | |
| with-annotation: ${{ matrix.platform.target == 'x86_64-unknown-linux-gnu' && matrix.features == '' }} | |
| - name: Cargo test | |
| run: cargo test --features "${{ matrix.features }} enable-slow-tests" --target ${{ matrix.platform.target }} | |
| - name: Cargo test benches | |
| run: cargo test --benches --features "${{ matrix.features }}" --target ${{ matrix.platform.target }} | |
| build_result: | |
| name: Result | |
| runs-on: ubuntu-latest | |
| if: always() | |
| needs: | |
| - "test" | |
| steps: | |
| - name: Success | |
| run: exit 0 | |
| if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} | |
| - name: Failure | |
| run: exit 1 | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') |