-
Notifications
You must be signed in to change notification settings - Fork 467
168 lines (163 loc) · 6.94 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: Compilation and Testing Suite
on:
pull_request:
push:
branches:
- master
tags:
- v*
paths-ignore:
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check-test-build:
runs-on: ubuntu-latest
name: Check, test and build
env:
RUST_BACKTRACE: full
steps:
- name: Checkout sources & submodules
uses: actions/checkout@master
with:
fetch-depth: 5
submodules: recursive
## Check Stage
- name: Checking rust-stable
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --all --verbose
## Test Stage
- name: Testing rust-stable
uses: actions-rs/cargo@master
with:
command: test
toolchain: stable
args: --all --verbose
- name: Testing rust-stable with arbitrary_precision
uses: actions-rs/cargo@master
with:
command: test
toolchain: stable
args: --all --verbose --features arbitrary_precision
## Build Stage
- name: Building rust-stable
uses: actions-rs/cargo@master
if: github.ref == 'refs/heads/master'
with:
command: build
toolchain: stable
args: --all --verbose
check-wasm:
name: Check WASM
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- name: Checkout sources & submodules
uses: actions/checkout@master
with:
fetch-depth: 5
submodules: recursive
- name: Add WASM Utilities
run: rustup target add wasm32-unknown-unknown --toolchain stable && cargo install wasm-bindgen-cli
## Check Stage
- name: Checking wasm32
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --target wasm32-unknown-unknown --no-default-features --features eip-1193
- name: Checking wasm32 with http
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --target wasm32-unknown-unknown --no-default-features --features http,wasm
- name: Testing wasm32
uses: actions-rs/cargo@master
with:
command: test
toolchain: stable
args: --target wasm32-unknown-unknown --no-default-features --features eip-1193 --tests
check-transports:
name: Check Transports
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- name: Checkout sources & submodules
uses: actions/checkout@master
with:
fetch-depth: 5
submodules: recursive
## Check Stage
- name: Checking without transports
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features
- name: Checking http
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features http
- name: Checking http-tls
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features http-tls
- name: Checking http-native-tls
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features http-native-tls
- name: Checking http-rustls-tls
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features http-rustls-tls
- name: Checking ws-tokio
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features ws-tokio
- name: Checking ws-tls-tokio
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features ws-tls-tokio
- name: Checking ws-rustls-tokio
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features ws-rustls-tokio
- name: Checking ws-async-std
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features ws-async-std
- name: Checking ws-tls-async-std
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features ws-tls-async-std
- name: Checking ipc-tokio
uses: actions-rs/cargo@master
with:
command: check
toolchain: stable
args: --no-default-features --features ipc-tokio