-
Notifications
You must be signed in to change notification settings - Fork 17
108 lines (96 loc) · 3.28 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Test
on:
pull_request:
workflow_dispatch:
jobs:
stable_rustc_1_51:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.51.0
profile: minimal
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run tests feature old_rust
run: cargo test --verbose --features=old_rust
- name: Run tests-extra
run: |
cd tests-extra
cargo test --features=invalid_programs --verbose
- name: Run tests-extra no_std_lib
run: |
cd tests-extra/no_std_lib
cargo test --verbose
- name: Run examples
run: |
cd examples
cargo run --verbose --bin fallible_dependent_construction
cargo run --verbose --bin lazy_ast
cargo run --verbose --bin owner_with_lifetime
- name: Build benchmarks
run: |
cd benchmarks
cargo build --release --verbose
old_rust_rustc_1_36:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.36.0
profile: minimal
override: true
- name: Run tests
run: cargo test --verbose --features=old_rust --test self_cell
nigthly_miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup miri
run: |
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
rustup set profile minimal
rustup default "$MIRI_NIGHTLY"
rustup component add miri
shell: bash
- name: Run tests with nightly basic
run: |
cargo test --verbose
- name: Run tests x86_64-unknown-linux-gnu
run: |
cargo miri test --verbose --target x86_64-unknown-linux-gnu
- name: Run tests-extra x86_64-unknown-linux-gnu
run: |
cd tests-extra
cargo miri test --verbose --target x86_64-unknown-linux-gnu
- name: Run examples x86_64-unknown-linux-gnu
run: |
cd examples
cargo miri run --verbose --target x86_64-unknown-linux-gnu --bin fallible_dependent_construction
cargo miri run --verbose --target x86_64-unknown-linux-gnu --bin lazy_ast
cargo miri run --verbose --target x86_64-unknown-linux-gnu --bin owner_with_lifetime
- name: Run tests mips64-unknown-linux-gnuabi64
run: |
cargo miri test --verbose --target mips64-unknown-linux-gnuabi64
- name: Run tests-extra mips64-unknown-linux-gnuabi64
run: |
cd tests-extra
cargo miri test --verbose --target mips64-unknown-linux-gnuabi64
- name: Run examples mips64-unknown-linux-gnuabi64
run: |
cd examples
cargo miri run --verbose --target mips64-unknown-linux-gnuabi64 --bin fallible_dependent_construction
cargo miri run --verbose --target mips64-unknown-linux-gnuabi64 --bin lazy_ast
cargo miri run --verbose --target mips64-unknown-linux-gnuabi64 --bin owner_with_lifetime