Skip to content

Commit c4f94e0

Browse files
authored
Merge pull request #3950 from TheBlueMatt/2025-07-self-hosted
Enable self-hosted runners
2 parents ebe571a + 2e35242 commit c4f94e0

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ concurrency:
1414

1515
jobs:
1616
ext-test:
17-
runs-on: ubuntu-latest
17+
runs-on: self-hosted
1818
steps:
1919
- name: Checkout source code
2020
uses: actions/checkout@v4
2121
- name: Install Rust stable toolchain
2222
run: |
2323
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
24-
rustup override set stable
2524
- name: Run externalized tests
2625
run: |
2726
cd ext-functional-test-demo
@@ -31,7 +30,7 @@ jobs:
3130
strategy:
3231
fail-fast: false
3332
matrix:
34-
platform: [ ubuntu-latest, windows-latest, macos-latest ]
33+
platform: [ self-hosted, windows-latest, macos-latest ]
3534
toolchain: [ stable, beta, 1.63.0 ] # 1.63.0 is the MSRV for all crates but `lightning-transaction-sync`.
3635
exclude:
3736
- platform: windows-latest
@@ -43,18 +42,13 @@ jobs:
4342
- name: Install Rust ${{ matrix.toolchain }} toolchain
4443
run: |
4544
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 }}
4745
- name: Install no-std-check dependencies for ARM Embedded
48-
if: "matrix.platform == 'ubuntu-latest'"
46+
if: "matrix.platform == 'self-hosted'"
4947
run: |
5048
rustup target add thumbv7m-none-eabi
51-
sudo apt-get -y install gcc-arm-none-eabi
52-
sudo apt-get clean
5349
- name: shellcheck the CI and `contrib` scripts
54-
if: "matrix.platform == 'ubuntu-latest'"
50+
if: "matrix.platform == 'self-hosted'"
5551
run: |
56-
sudo apt-get -y install shellcheck
57-
sudo apt-get clean
5852
shellcheck ci/*.sh -aP ci
5953
shellcheck contrib/*.sh -aP contrib
6054
- name: Set RUSTFLAGS to deny warnings
@@ -77,7 +71,6 @@ jobs:
7771
- name: Install Rust ${{ matrix.toolchain }} toolchain
7872
run: |
7973
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 }}
8174
- name: Set RUSTFLAGS to deny warnings
8275
if: "matrix.toolchain == '1.75.0'"
8376
run: echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
@@ -111,7 +104,7 @@ jobs:
111104
coverage:
112105
strategy:
113106
fail-fast: false
114-
runs-on: ubuntu-latest
107+
runs-on: self-hosted
115108
steps:
116109
- name: Checkout source code
117110
uses: actions/checkout@v4
@@ -150,7 +143,6 @@ jobs:
150143
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
151144
run: |
152145
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 }}
154146
- name: Cache routing graph snapshot
155147
id: cache-graph
156148
uses: actions/cache@v4
@@ -206,7 +198,7 @@ jobs:
206198
RUSTFLAGS="--cfg=ldk_bench --cfg=require_route_graph_test" cargo bench
207199
208200
check_commits:
209-
runs-on: ubuntu-latest
201+
runs-on: self-hosted
210202
env:
211203
TOOLCHAIN: stable
212204
steps:
@@ -217,7 +209,6 @@ jobs:
217209
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
218210
run: |
219211
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 }}
221212
- name: Fetch full tree and rebase on upstream
222213
run: |
223214
git remote add upstream https://github.com/lightningdevkit/rust-lightning
@@ -240,7 +231,6 @@ jobs:
240231
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
241232
run: |
242233
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 }}
244234
- name: Run cargo check for release build.
245235
run: |
246236
cargo check --release
@@ -258,7 +248,7 @@ jobs:
258248
RUSTDOCFLAGS: '--cfg=taproot'
259249

260250
fuzz:
261-
runs-on: ubuntu-latest
251+
runs-on: self-hosted
262252
env:
263253
TOOLCHAIN: 1.63
264254
steps:
@@ -267,12 +257,6 @@ jobs:
267257
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
268258
run: |
269259
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
276260
- name: Pin the regex dependency
277261
run: |
278262
cd fuzz && cargo update -p regex --precise "1.9.6" --verbose
@@ -295,7 +279,6 @@ jobs:
295279
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
296280
run: |
297281
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 }}
299282
- name: Install clippy
300283
run: |
301284
rustup component add clippy
@@ -313,7 +296,6 @@ jobs:
313296
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
314297
run: |
315298
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 }}
317299
- name: Install rustfmt
318300
run: |
319301
rustup component add rustfmt

fuzz/ci-fuzz.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ cargo --color always hfuzz build
3333
for TARGET in src/bin/*.rs; do
3434
FILENAME=$(basename $TARGET)
3535
FILE="${FILENAME%.*}"
36-
HFUZZ_RUN_ARGS="--exit_upon_crash -v -n2"
36+
HFUZZ_RUN_ARGS="--exit_upon_crash -v -n8"
3737
if [ "$FILE" = "chanmon_consistency_target" ]; then
3838
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N1000"
39-
elif [ "$FILE" = "process_network_graph_target" -o "$FILE" = "full_stack_target" -o "$FILE" = "router_target" ]; then
39+
elif [ "$FILE" = "process_network_graph_target" -o "$FILE" = "full_stack_target" -o "$FILE" = "router_target" -o "$FILE" = "lsps_message_target" ]; then
4040
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N10000"
4141
elif [ "$FILE" = "indexedmap_target" ]; then
4242
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N100000"

0 commit comments

Comments
 (0)