-
-
Notifications
You must be signed in to change notification settings - Fork 86
59 lines (57 loc) · 1.71 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
56
57
58
59
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
env:
RUST_BACKTRACE: 1
strategy:
matrix:
build: [linux64, macos, win32, win64]
include:
- build: linux64
os: ubuntu-latest
channel: stable
target: x86_64-unknown-linux-gnu
#- build: linux32
# os: ubuntu-latest
# channel: stable
# target: i686-unknown-linux-gnu
- build: macos
os: macos-latest
channel: stable
target: x86_64-apple-darwin
- build: win32
os: windows-latest
channel: stable
target: i686-pc-windows-msvc
- build: win64
os: windows-latest
channel: stable
target: x86_64-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- run: |
TOOLCHAIN=${{ matrix.channel }}-${{ matrix.target }}
rustup toolchain install --no-self-update $TOOLCHAIN
rustup default $TOOLCHAIN
shell: bash
- name: Rust version
run: |
set -ex
rustc -Vv
cargo -V
rustup show
shell: bash
# Check build to fail fast
- run: cargo check --target ${{ matrix.target }}
- run: cargo build --target ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }}
# FIXME(#41): Some timeout/deadline tests make more sense to run in release mode.
#- run: cargo test --release --target ${{ matrix.target }}
- run: cargo build --all-targets --target ${{ matrix.target }}
- run: cargo build --all-targets --no-default-features --target ${{ matrix.target }}