-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.14 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
push: {}
pull_request: {}
jobs:
test:
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Run tests'
shell: bash
run: |
set -ex
cd $GITHUB_WORKSPACE
cargo check --all-targets --all-features
cargo test --all-features
strategy:
matrix:
include:
- os: ubuntu-20.04
- os: macos-latest
test_windows:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure MSVC Environment Variables
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\enterprise\VC\Auxiliary\Build\vcvars64.bat"
set > %GITHUB_ENV%
- name: 'Run tests'
shell: cmd
run: |
cd %GITHUB_WORKSPACE%
cargo check --all-targets --all-features
cargo test --all-features