-
Notifications
You must be signed in to change notification settings - Fork 55
81 lines (76 loc) · 2.68 KB
/
test.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
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: stable
- os: macos-latest
target: x86_64-apple-darwin
toolchain: stable
- os: windows-latest
target: x86_64-pc-windows-gnu
toolchain: stable
- os: windows-latest
target: x86_64-pc-windows-msvc
toolchain: beta
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: 1.66.0 # MSRV
- os: ubuntu-latest
deps: sudo apt update ; sudo apt install gcc-multilib
target: i686-unknown-linux-gnu
toolchain: nightly
steps:
- uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
override: true
- run: ${{ matrix.deps }}
- name: Test sailfish
run: |
cargo test --target ${{ matrix.target }} --manifest-path sailfish/Cargo.toml --no-default-features
cargo test --target ${{ matrix.target }} --manifest-path sailfish/Cargo.toml --all-features
- name: Test sailfish-compiler
run: |
cargo test --target ${{ matrix.target }} --manifest-path sailfish-compiler/Cargo.toml
- name: Integration tests
# Currently integration tests have some issue related to line feeds
if: ${{ matrix.os != 'windows-latest' }}
run: |
cargo test --target ${{ matrix.target }} --manifest-path sailfish-tests/integration-tests/Cargo.toml
test-miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install toolchain
run: |
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
rustup default "$MIRI_NIGHTLY"
rustup component add miri
- name: Test sailfish
run: |
cargo miri test --manifest-path sailfish/Cargo.toml --no-default-features
cargo miri test --manifest-path sailfish/Cargo.toml --all-features
test-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
target: aarch64-apple-ios
override: true
- name: Build only
run: cargo build --target=aarch64-apple-ios --workspace