| name: Rust Build |
| on: |
| workflow_call: |
| jobs: |
| build: |
| name: "${{ matrix.os }}" |
| runs-on: ${{ matrix.os }} |
| strategy: |
| matrix: |
| os: [ubuntu-20.04, macos-11, windows-2022] |
| steps: |
| - uses: actions/checkout@v2 |
| with: |
| submodules: true |
| - uses: actions-rs/toolchain@v1 |
| with: |
| toolchain: stable |
| - name: Install Protoc |
| uses: arduino/setup-protoc@v1 |
| with: |
| version: '3.x' |
| repo-token: ${{ secrets.GITHUB_TOKEN }} |
| - name: Build |
| working-directory: ./rust |
| run: cargo build |
| |
| - name: Unit Test |
| working-directory: ./rust |
| run: cargo test |