-
Notifications
You must be signed in to change notification settings - Fork 5
81 lines (69 loc) · 1.96 KB
/
tests.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
on: [push, pull_request]
name: CI
jobs:
test:
name: Test Suite
strategy:
fail-fast: false
matrix:
config:
- node: ubuntu-latest
- node: windows-latest
- node: macos-latest
runs-on: ${{ matrix.config.node }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: install
args: cargo-all-features
- uses: actions-rs/cargo@v1
with:
command: test-all-features
- uses: actions-rs/cargo@v1
with:
command: test-all-features
args: --release
# cargo all-features currently does not support cross
test-cross:
strategy:
fail-fast: false
matrix:
config:
# ubuntu aarch64
- node: ubuntu-latest
arch: aarch64-unknown-linux-gnu
- node: ubuntu-latest
arch: aarch64-unknown-linux-musl
# ubuntu x86
- node: ubuntu-latest
arch: x86_64-unknown-linux-gnu
- node: ubuntu-latest
arch: x86_64-unknown-linux-musl
# apple aarch64
- node: macos-latest
arch: aarch64-apple-darwin
runs-on: ${{ matrix.config.node }}
steps:
- name: Checkout repository
uses: actions/[email protected]
- uses: docker-practice/actions-setup-docker@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions-rs/cargo@v1
with:
command: install
args: cross
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Test Dev
run: cross test --target ${{ matrix.config.arch }} --lib
- name: Test Release
run: cross test --target ${{ matrix.config.arch }} --release --lib