@@ -14,14 +14,13 @@ concurrency:
14
14
15
15
jobs :
16
16
ext-test :
17
- runs-on : ubuntu-latest
17
+ runs-on : self-hosted
18
18
steps :
19
19
- name : Checkout source code
20
20
uses : actions/checkout@v4
21
21
- name : Install Rust stable toolchain
22
22
run : |
23
23
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
24
- rustup override set stable
25
24
- name : Run externalized tests
26
25
run : |
27
26
cd ext-functional-test-demo
31
30
strategy :
32
31
fail-fast : false
33
32
matrix :
34
- platform : [ ubuntu-latest , windows-latest, macos-latest ]
33
+ platform : [ self-hosted , windows-latest, macos-latest ]
35
34
toolchain : [ stable, beta, 1.63.0 ] # 1.63.0 is the MSRV for all crates but `lightning-transaction-sync`.
36
35
exclude :
37
36
- platform : windows-latest
@@ -43,18 +42,13 @@ jobs:
43
42
- name : Install Rust ${{ matrix.toolchain }} toolchain
44
43
run : |
45
44
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
46
- rustup override set ${{ matrix.toolchain }}
47
45
- name : Install no-std-check dependencies for ARM Embedded
48
- if : " matrix.platform == 'ubuntu-latest '"
46
+ if : " matrix.platform == 'self-hosted '"
49
47
run : |
50
48
rustup target add thumbv7m-none-eabi
51
- sudo apt-get -y install gcc-arm-none-eabi
52
- sudo apt-get clean
53
49
- name : shellcheck the CI and `contrib` scripts
54
- if : " matrix.platform == 'ubuntu-latest '"
50
+ if : " matrix.platform == 'self-hosted '"
55
51
run : |
56
- sudo apt-get -y install shellcheck
57
- sudo apt-get clean
58
52
shellcheck ci/*.sh -aP ci
59
53
shellcheck contrib/*.sh -aP contrib
60
54
- name : Set RUSTFLAGS to deny warnings
77
71
- name : Install Rust ${{ matrix.toolchain }} toolchain
78
72
run : |
79
73
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
80
- rustup override set ${{ matrix.toolchain }}
81
74
- name : Set RUSTFLAGS to deny warnings
82
75
if : " matrix.toolchain == '1.75.0'"
83
76
run : echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
@@ -111,7 +104,7 @@ jobs:
111
104
coverage :
112
105
strategy :
113
106
fail-fast : false
114
- runs-on : ubuntu-latest
107
+ runs-on : self-hosted
115
108
steps :
116
109
- name : Checkout source code
117
110
uses : actions/checkout@v4
@@ -150,7 +143,6 @@ jobs:
150
143
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
151
144
run : |
152
145
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
153
- rustup override set ${{ env.TOOLCHAIN }}
154
146
- name : Cache routing graph snapshot
155
147
id : cache-graph
156
148
uses : actions/cache@v4
@@ -206,7 +198,7 @@ jobs:
206
198
RUSTFLAGS="--cfg=ldk_bench --cfg=require_route_graph_test" cargo bench
207
199
208
200
check_commits :
209
- runs-on : ubuntu-latest
201
+ runs-on : self-hosted
210
202
env :
211
203
TOOLCHAIN : stable
212
204
steps :
@@ -217,7 +209,6 @@ jobs:
217
209
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
218
210
run : |
219
211
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
220
- rustup override set ${{ env.TOOLCHAIN }}
221
212
- name : Fetch full tree and rebase on upstream
222
213
run : |
223
214
git remote add upstream https://github.com/lightningdevkit/rust-lightning
@@ -240,7 +231,6 @@ jobs:
240
231
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
241
232
run : |
242
233
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
243
- rustup override set ${{ env.TOOLCHAIN }}
244
234
- name : Run cargo check for release build.
245
235
run : |
246
236
cargo check --release
@@ -258,7 +248,7 @@ jobs:
258
248
RUSTDOCFLAGS : ' --cfg=taproot'
259
249
260
250
fuzz :
261
- runs-on : ubuntu-latest
251
+ runs-on : self-hosted
262
252
env :
263
253
TOOLCHAIN : 1.63
264
254
steps :
@@ -267,12 +257,6 @@ jobs:
267
257
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
268
258
run : |
269
259
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
270
- rustup override set ${{ env.TOOLCHAIN }}
271
- - name : Install dependencies for honggfuzz
272
- run : |
273
- sudo apt-get update
274
- sudo apt-get -y install build-essential binutils-dev libunwind-dev
275
- sudo apt-get clean
276
260
- name : Pin the regex dependency
277
261
run : |
278
262
cd fuzz && cargo update -p regex --precise "1.9.6" --verbose
@@ -295,7 +279,6 @@ jobs:
295
279
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
296
280
run : |
297
281
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
298
- rustup override set ${{ env.TOOLCHAIN }}
299
282
- name : Install clippy
300
283
run : |
301
284
rustup component add clippy
@@ -313,7 +296,6 @@ jobs:
313
296
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
314
297
run : |
315
298
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
316
- rustup override set ${{ env.TOOLCHAIN }}
317
299
- name : Install rustfmt
318
300
run : |
319
301
rustup component add rustfmt
0 commit comments