Skip to content

Commit

Permalink
CI: bring back matrix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilken committed Dec 25, 2022
1 parent be6ee91 commit ebd5d7d
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,39 @@ jobs:
args: --all -- --check

test:
name: Test
runs-on: ubuntu-latest
name: Test ${{ matrix.rust }} on ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
os:
- ubuntu-latest
- macOS-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust
- name: Install Rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ matrix.rust }}
override: true
- name: Install protoc
if: matrix.os == 'ubuntu-latest'
run: sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev
- name: Install protoc
if: matrix.os == 'macOS-latest'
run: brew install protobuf
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test

doc:
name: Build docs
needs: [style, test]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -59,6 +73,8 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Install protoc
run: sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev
- name: cargo rustdoc -- -D rustdoc::broken_intra_doc_links
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit ebd5d7d

Please sign in to comment.