blob: 06fc86fa337bca8c6a9519762d778fbdf5243af2 (
plain)
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
|
name: Build & Test
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
rust: [stable]
experimental: [false]
include:
- rust: nightly
experimental: true
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust
run: rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt clippy
- name: Setup
run: |
rustup default ${{ matrix.rust }}
toolchain=$(rustup default)
echo "Use Rust toolchain: $toolchain"
rustc --version
cargo --version
- name: Build
run: cargo build --verbose
- name: Regular Test
run: sh run_tests.sh
- name: Sanitizer Test
if: ${{ matrix.rust == 'nightly' }}
run: sh run_sanitizers.sh
|