Update rust.yml workflow #126
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
on: [push, pull_request] | |
name: prost-wkt build | |
env: | |
PROTOC_VERSION: 3.20.3 | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
rust: | |
- stable | |
- 1.70.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install toolchain (${{ matrix.rust }}) | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: install protoc | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: protoc@${{ env.PROTOC_VERSION }} | |
- name: execute build | |
run: cargo build | |
- name: execute test | |
run: cargo test --workspace |