-
Notifications
You must be signed in to change notification settings - Fork 9
106 lines (99 loc) · 2.61 KB
/
verify.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
on:
pull_request:
push:
branches: [main]
tags:
- "v*.*.*"
name: Verify
jobs:
test_linux:
name: Test Linux
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
test_windows:
name: Test Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
test_macos:
name: Test MacOS
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
# For test vs build https://github.com/cross-rs/cross?tab=readme-ov-file#supported-targets
test_cross:
name: Test Android and Musl
strategy:
matrix:
target:
- aarch64-linux-android
- x86_64-unknown-linux-musl
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install Cross
run: cargo install cross --git https://github.com/cross-rs/cross --rev 085092c
- name: Cross Test
run: cross test --target ${{ matrix.target }}
build_cross:
name: Build BSDs
strategy:
matrix:
target:
- x86_64-unknown-freebsd
- x86_64-unknown-netbsd
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install Cross
run: cargo install cross --git https://github.com/cross-rs/cross --rev 085092c
- name: Cross Test
run: cross build --target ${{ matrix.target }}