File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -30,25 +30,39 @@ jobs:
3030 args : --all -- --check
3131
3232 test :
33- name : Test
34- runs-on : ubuntu-latest
33+ name : Test ${{ matrix.rust }} on ${{ matrix.os }}
34+ strategy :
35+ matrix :
36+ rust :
37+ - stable
38+ - beta
39+ - nightly
40+ os :
41+ - ubuntu-latest
42+ - macOS-latest
43+ runs-on : ${{ matrix.os }}
3544 steps :
3645 - name : Checkout
3746 uses : actions/checkout@v1
38- - name : Install Rust
47+ - name : Install Rust (${{ matrix.rust }})
3948 uses : actions-rs/toolchain@v1
4049 with :
4150 profile : minimal
42- toolchain : stable
51+ toolchain : ${{ matrix.rust }}
4352 override : true
53+ - name : Install protoc
54+ if : matrix.os == 'ubuntu-latest'
55+ run : sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev
56+ - name : Install protoc
57+ if : matrix.os == 'macOS-latest'
58+ run : brew install protobuf
4459 - name : cargo test
4560 uses : actions-rs/cargo@v1
4661 with :
4762 command : test
4863
4964 doc :
5065 name : Build docs
51- needs : [style, test]
5266 runs-on : ubuntu-latest
5367 steps :
5468 - name : Checkout
5973 profile : minimal
6074 toolchain : stable
6175 override : true
76+ - name : Install protoc
77+ run : sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev
6278 - name : cargo rustdoc -- -D rustdoc::broken_intra_doc_links
6379 uses : actions-rs/cargo@v1
6480 with :
You can’t perform that action at this time.
0 commit comments