-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (34 loc) · 981 Bytes
/
rust.yml
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
name: Build
on:
push:
branches: [ master, rfc ]
pull_request:
branches: [ master, rfc ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
feature: ["default", "gcpkms", "awskms"]
toolchain: ["stable", "beta"]
steps:
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.toolchain }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
- name: Build using Rust ${{ matrix.toolchain }}
run: cargo build --verbose --features ${{ matrix.feature }} --release
- name: Run tests using Rust ${{ matrix.toolchain }}
run: cargo test --verbose --features ${{ matrix.feature }} --release