Skip to content

Commit e3e7960

Browse files
authored
Merge pull request #922 from benthecarman/ci-timeouts
Add 60 minute timeout to CI jobs
2 parents 3b296f2 + c2ee8b0 commit e3e7960

14 files changed

Lines changed: 37 additions & 19 deletions

.github/workflows/audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
audit:
9+
timeout-minutes: 60
910
permissions:
1011
issues: write
1112
checks: write

.github/workflows/benchmarks.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,27 @@ concurrency:
88

99
jobs:
1010
benchmark:
11-
runs-on: ubuntu-latest
11+
timeout-minutes: 60
12+
runs-on: self-hosted
1213
env:
1314
TOOLCHAIN: stable
1415
steps:
1516
- name: Checkout source code
16-
uses: actions/checkout@v6
17+
uses: actions/checkout@v4
1718
- name: Install Rust toolchain
1819
run: |
1920
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
20-
rustup override set stable
21+
- name: Set Rust override
22+
run: rustup override set stable
2123
- name: Enable caching for bitcoind
2224
id: cache-bitcoind
23-
uses: actions/cache@v5
25+
uses: actions/cache@v4
2426
with:
2527
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
2628
key: bitcoind-29.0-${{ runner.os }}-${{ runner.arch }}
2729
- name: Enable caching for electrs
2830
id: cache-electrs
29-
uses: actions/cache@v5
31+
uses: actions/cache@v4
3032
with:
3133
path: bin/electrs-${{ runner.os }}-${{ runner.arch }}
3234
key: electrs-${{ runner.os }}-${{ runner.arch }}

.github/workflows/cln-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88

99
jobs:
1010
check-cln:
11+
timeout-minutes: 60
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Checkout repository

.github/workflows/cron-weekly-rustfmt.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
jobs:
1212
format:
1313
name: Nightly rustfmt
14-
runs-on: ubuntu-24.04
14+
timeout-minutes: 60
15+
runs-on: ubuntu-latest
1516
steps:
1617
- uses: actions/checkout@v6
1718
- uses: dtolnay/rust-toolchain@nightly

.github/workflows/eclair-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88

99
jobs:
1010
check-eclair:
11+
timeout-minutes: 60
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Checkout repository

.github/workflows/hrn-integration.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ concurrency:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-latest
11+
timeout-minutes: 60
12+
runs-on: self-hosted
1213

1314
steps:
1415
- name: Checkout source code
@@ -42,4 +43,4 @@ jobs:
4243
- name: Run HRN Integration Tests
4344
run: |
4445
RUSTFLAGS="--cfg no_download --cfg hrn_tests $RUSTFLAGS" cargo test --test integration_tests_hrn
45-
RUSTFLAGS="--cfg no_download --cfg hrn_tests $RUSTFLAGS" cargo test --test integration_tests_hrn --features uniffi
46+
RUSTFLAGS="--cfg no_download --cfg hrn_tests $RUSTFLAGS" cargo test --test integration_tests_hrn --features uniffi

.github/workflows/kotlin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88

99
jobs:
1010
check-kotlin:
11+
timeout-minutes: 60
1112
runs-on: ubuntu-latest
1213

1314
env:

.github/workflows/lnd-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88

99
jobs:
1010
check-lnd:
11+
timeout-minutes: 60
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Checkout repository

.github/workflows/python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88

99
jobs:
1010
check-python:
11+
timeout-minutes: 60
1112
runs-on: ubuntu-latest
1213

1314
env:

.github/workflows/rust.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ concurrency:
88

99
jobs:
1010
build:
11+
timeout-minutes: 60
1112
strategy:
1213
matrix:
1314
platform: [
14-
ubuntu-latest,
15+
self-hosted,
1516
macos-latest,
1617
windows-latest,
1718
]
@@ -24,7 +25,7 @@ jobs:
2425
- toolchain: stable
2526
check-fmt: true
2627
build-uniffi: true
27-
platform: ubuntu-latest
28+
platform: self-hosted
2829
- toolchain: stable
2930
platform: macos-latest
3031
- toolchain: stable
@@ -34,7 +35,7 @@ jobs:
3435
runs-on: ${{ matrix.platform }}
3536
steps:
3637
- name: Checkout source code
37-
uses: actions/checkout@v6
38+
uses: actions/checkout@v4
3839
- name: Install Rust ${{ matrix.toolchain }} toolchain
3940
run: |
4041
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
@@ -50,13 +51,13 @@ jobs:
5051
run: echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
5152
- name: Enable caching for bitcoind
5253
id: cache-bitcoind
53-
uses: actions/cache@v5
54+
uses: actions/cache@v4
5455
with:
5556
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
5657
key: bitcoind-29.0-${{ runner.os }}-${{ runner.arch }}
5758
- name: Enable caching for electrs
5859
id: cache-electrs
59-
uses: actions/cache@v5
60+
uses: actions/cache@v4
6061
with:
6162
path: bin/electrs-${{ runner.os }}-${{ runner.arch }}
6263
key: electrs-${{ runner.os }}-${{ runner.arch }}
@@ -92,26 +93,29 @@ jobs:
9293
9394
linting:
9495
name: Linting
95-
runs-on: ubuntu-latest
96+
timeout-minutes: 60
97+
runs-on: self-hosted
9698
steps:
9799
- name: Checkout source code
98-
uses: actions/checkout@v6
99-
- name: Install Rust and clippy
100+
uses: actions/checkout@v4
101+
- name: Install Rust stable toolchain
100102
run: |
101103
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
102-
rustup component add clippy
104+
- name: Add clippy component
105+
run: rustup component add clippy
103106
- name: Ban `unwrap` in library code
104107
run: |
105108
cargo clippy --lib --verbose --color always -- -A warnings -D clippy::unwrap_used -A clippy::tabs_in_doc_comments
106109
cargo clippy --lib --features uniffi --verbose --color always -- -A warnings -D clippy::unwrap_used -A clippy::tabs_in_doc_comments
107110
108111
doc:
109112
name: Documentation
110-
runs-on: ubuntu-latest
113+
timeout-minutes: 60
114+
runs-on: self-hosted
111115
env:
112116
RUSTDOCFLAGS: -Dwarnings
113117
steps:
114-
- uses: actions/checkout@v6
118+
- uses: actions/checkout@v4
115119
- uses: dtolnay/rust-toolchain@nightly
116120
- uses: dtolnay/install@cargo-docs-rs
117121
- run: cargo docs-rs

0 commit comments

Comments
 (0)