-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (36 loc) · 1.15 KB
/
ogg.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
38
39
40
41
name: ogg
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
toolchain: [stable, beta, 1.56.1]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: Downgrade dependencies to comply with MSRV
if: matrix.toolchain == '1.56.1'
run: cargo update -p tokio --precise 1.29.1
- name: Run no-default-features builds
if: matrix.toolchain != '1.56.1'
run: |
cargo test --verbose --no-default-features
cargo doc --verbose --no-default-features
- name: Run no-default-features builds (forbidding warnings)
if: matrix.toolchain == '1.56.1'
env:
RUSTFLAGS: -D warnings
run: |
cargo test --verbose --no-default-features
cargo doc --verbose --no-default-features
- name: Run all-features builds
if: matrix.toolchain != '1.56.1'
run: |
cargo test --verbose --all-features
cargo doc --verbose --all-features