@@ -8,10 +8,11 @@ concurrency:
88
99jobs :
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 ]
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
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