-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (48 loc) · 1.26 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on: [push, pull_request]
jobs:
Test_Linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04]
features: ["", --features=generate_bindings]
steps:
- uses: actions/checkout@v1
- name: Checkout
run: git submodule update --init
- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose
Test_MacOS:
runs-on: macOS-latest
strategy:
matrix:
features: ["", --features=generate_bindings]
steps:
- uses: actions/checkout@v1
- name: checkout
run: git submodule update --init
- name: install_dependencies
run: |
brew install rustup
rustup-init -y --default-toolchain stable
- name: Build
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo build --verbose ${{ matrix.features }}
- name: Test
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo test
Test_Windows:
runs-on: windows-2016
steps:
- uses: actions/checkout@v1
- name: Checkout
run: git submodule update --init
- name: Build
run: cargo build --verbose
# - name: Run tests
# run: cargo test --verbose