@@ -20,13 +20,13 @@ jobs:
20
20
steps :
21
21
22
22
- name : Cancel Previous Runs
23
-
23
+ uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
24
24
with :
25
25
access_token : ${{ github.token }}
26
26
27
27
28
28
29
- -
uses :
Swatinem/[email protected]
29
+ - uses : Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # v1.3.0
30
30
with :
31
31
key : ${{ matrix.args }}
32
32
@@ -44,35 +44,38 @@ jobs:
44
44
include :
45
45
- toolchain : wasm32-unknown-unknown
46
46
args : " --features wasm-bindgen"
47
- container :
48
- image : rust
49
- env :
50
- CC : clang-11
47
+ env :
48
+ CC : clang-11
49
+ defaults :
50
+ run :
51
+ shell : bash
51
52
steps :
52
53
53
54
- name : Cancel Previous Runs
54
-
55
+ uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
55
56
with :
56
57
access_token : ${{ github.token }}
57
58
58
59
59
60
60
61
- name : Install Rust ${{ matrix.toolchain }}
61
- uses :
actions-rs/[email protected]
62
+ uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
62
63
with :
63
64
toolchain : stable
64
65
target : ${{ matrix.toolchain }}
65
66
override : true
66
67
67
68
- name : Install a recent version of clang
68
69
run : |
69
- apt-get update
70
- apt-get install -y clang-11
70
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
71
+ sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main"
72
+ sudo apt-get update
73
+ sudo apt-get install -y clang-11
71
74
72
75
- name : Install CMake
73
- run : apt-get install -y cmake
76
+ run : sudo apt-get install -y cmake
74
77
75
- -
uses :
Swatinem/[email protected]
78
+ - uses : Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # v1.3.0
76
79
with :
77
80
key : ${{ matrix.toolchain }}
78
81
@@ -89,13 +92,13 @@ jobs:
89
92
steps :
90
93
91
94
- name : Cancel Previous Runs
92
-
95
+ uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
93
96
with :
94
97
access_token : ${{ github.token }}
95
98
96
99
97
100
98
- -
uses :
Swatinem/[email protected]
101
+ - uses : Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # v1.3.0
99
102
100
103
- name : Check rustdoc links
101
104
run : RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
@@ -105,23 +108,23 @@ jobs:
105
108
steps :
106
109
107
110
- name : Cancel Previous Runs
108
-
111
+ uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
109
112
with :
110
113
access_token : ${{ github.token }}
111
114
112
115
113
116
114
- -
uses :
actions-rs/[email protected]
117
+ - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
115
118
with :
116
119
profile : minimal
117
120
toolchain : stable
118
121
override : true
119
122
components : clippy
120
123
121
- -
uses :
Swatinem/[email protected]
124
+ - uses : Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # v1.3.0
122
125
123
126
- name : Run cargo clippy
124
- uses :
actions-rs/[email protected]
127
+ uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
125
128
with :
126
129
command : custom-clippy # cargo alias to allow reuse of config locally
127
130
@@ -133,13 +136,13 @@ jobs:
133
136
steps :
134
137
135
138
- name : Cancel Previous Runs
136
-
139
+ uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
137
140
with :
138
141
access_token : ${{ github.token }}
139
142
140
143
141
144
142
- -
uses :
Swatinem/[email protected]
145
+ - uses : Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # v1.3.0
143
146
144
147
- name : Run ipfs-kad example
145
148
run : RUST_LOG=libp2p_swarm=debug,libp2p_kad=trace,libp2p_tcp=debug cargo run --example ipfs-kad
@@ -149,13 +152,13 @@ jobs:
149
152
steps :
150
153
151
154
- name : Cancel Previous Runs
152
-
155
+ uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
153
156
with :
154
157
access_token : ${{ github.token }}
155
158
156
159
157
160
158
- -
uses :
actions-rs/[email protected]
161
+ - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
159
162
with :
160
163
profile : minimal
161
164
toolchain : stable
0 commit comments