-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactions.yml
50 lines (41 loc) · 1.01 KB
/
actions.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
name: Rust
on: [push]
jobs:
test_Ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install_dependencies
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
- name: Build
run: |
rustc --version
cargo build
- name: Test
run: cargo test
test_MacOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: install_dependencies
run: |
brew install rustup
rustup-init -y --default-toolchain stable
- name: Build
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo build
- name: Test
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo test
test_Windows:
runs-on: windows-2016
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build
- name: Test
run: cargo test