-
-
Notifications
You must be signed in to change notification settings - Fork 74
39 lines (35 loc) · 954 Bytes
/
test.yml
File metadata and controls
39 lines (35 loc) · 954 Bytes
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
name: Test
on: [push, pull_request]
jobs:
linux:
name: Linux ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build --verbose
- name: Run example
run: cargo run --verbose --example info
windows:
name: Windows ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build --verbose
- name: Run example
run: cargo run --verbose --example info
macos:
name: macOS-latest
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Get Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup && sh ./rustup -y
- name: Build
run: source ~/.cargo/env; cargo build --verbose
- name: Run example
run: source ~/.cargo/env; cargo run --verbose --example info