Skip to content

Commit ea8c8e6

Browse files
mario-reim-reichert
authored andcommitted
Merge branch 'Blockstream:new-index' into rpc-log-update
2 parents e756526 + 181256b commit ea8c8e6

File tree

1 file changed

+33
-39
lines changed

1 file changed

+33
-39
lines changed

.github/workflows/rust.yml

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,50 @@ on:
66
- new-index
77
pull_request: {}
88

9-
jobs:
10-
test:
11-
runs-on: ubuntu-20.04
12-
env:
13-
CARGO_TERM_COLOR: always
9+
env:
10+
CARGO_TERM_COLOR: always
1411

12+
jobs:
13+
check:
14+
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/checkout@v2
17-
18-
- name: Cache cargo registry
19-
uses: actions/cache@v1
20-
with:
21-
path: ~/.cargo/registry
22-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
23-
24-
- name: Cache cargo index
25-
uses: actions/cache@v1
26-
with:
27-
path: ~/.cargo/git
28-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
29-
30-
- name: Cache cargo build
31-
uses: actions/cache@v1
32-
with:
33-
path: target
34-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
35-
36-
#- name: Check formatting
37-
# run: cargo fmt -- --check
38-
39-
- name: Setup Rust toolchain
40-
run: rustup default 1.75.0
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/[email protected]
18+
- uses: Swatinem/rust-cache@v2
19+
- name: Run cargo check --all-targets
20+
run: cargo check --all-targets
4121

42-
- name: Check for errors
43-
run: cargo check
44-
45-
- name: Tests (Bitcoin mode, REST+Electrum)
22+
test:
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- run: sudo apt-get update && sudo apt-get install libfuse2
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/[email protected]
28+
- uses: Swatinem/rust-cache@v2
29+
- name: Run tests (Bitcoin mode, REST+Electrum)
4630
run: RUST_LOG=debug cargo test
4731

48-
- name: Test test_electrum_raw
32+
test-electrum-raw:
33+
runs-on: ubuntu-22.04
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: dtolnay/[email protected]
37+
- uses: Swatinem/rust-cache@v2
38+
- name: Run test test_electrum_raw
4939
run: RUST_LOG=debug cargo test -- --include-ignored test_electrum_raw
5040

51-
- name: Tests (Liquid mode, REST)
41+
test-liquid:
42+
runs-on: ubuntu-22.04
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: dtolnay/[email protected]
46+
- uses: Swatinem/rust-cache@v2
47+
- name: Run tests (Liquid mode, REST)
5248
run: RUST_LOG=debug cargo test --features liquid
5349

54-
5550
nix:
5651
runs-on: ubuntu-latest
5752
steps:
58-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5954
- uses: DeterminateSystems/nix-installer-action@main
6055
- run: nix build .
61-

0 commit comments

Comments
 (0)