-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (60 loc) · 1.96 KB
/
merge.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
name: Merge (with Bors)
on:
push:
branches:
- staging
- trying
jobs:
check:
strategy:
matrix:
include:
- platform: macos
toolchain: stable
- platform: macos
toolchain: 1.51.0
- platform: ubuntu
toolchain: stable
- platform: ubuntu
toolchain: 1.51.0
- platform: windows
toolchain: stable
- platform: windows
toolchain: 1.51.0
name: Test on ${{ matrix.platform }} with Rust ${{ matrix.toolchain }}
runs-on: "${{ matrix.platform }}-latest"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: "${{ matrix.toolchain }}"
default: true
- uses: actions-rs/cargo@v1
if: "matrix.platform != 'windows'"
with:
command: test
- if: "matrix.platform == 'windows'"
shell: powershell
run: cargo test --doc
- if: "matrix.platform == 'windows'"
shell: powershell
run: cargo test --test platformed terminfo
- if: "matrix.platform == 'windows'"
shell: powershell
run: cargo test --test platformed xterm
- if: "matrix.platform == 'windows'"
shell: powershell
run: cargo test --test platformed tput
- if: "matrix.platform == 'windows'"
shell: powershell
run: cargo test --test platformed windows_cls
# I've absolutely tested the windows_vt things LOCALLY but they DON'T WORK IN CI
# I don't know why and at this point I'm very very tired. If you know, help pls.
- if: "matrix.platform == 'windows'"
shell: powershell
run: cargo test --test platformed vt_ris
# remove toolchain restriction when bumping msrv above 1.51
- if: "matrix.platform == 'windows' && matrix.toolchain == 'stable'"
shell: powershell
run: cd tests/win10; cargo run