Skip to content

Commit 8301397

Browse files
committed
Fix CI to actually run rust stable and MSRV
1 parent 28ee8aa commit 8301397

4 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/ldk-node-integration-tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,21 @@ jobs:
4141
with:
4242
repository: lightningdevkit/ldk-node
4343
path: ldk-node
44+
- name: Install Rust toolchain
45+
run: |
46+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
47+
rustup default ${{ matrix.toolchain }}
4448
4549
- name: Build and Deploy VSS Server
4650
run: |
4751
cd vss-server/rust
4852
RUSTFLAGS="--cfg noop_authorizer" cargo build --no-default-features
4953
./target/debug/vss-server server/vss-server-config.toml&
54+
- name: Pin packages to allow for MSRV
55+
if: "matrix.toolchain == '1.85.0'"
56+
run: |
57+
cd ldk-node
58+
cargo update -p idna_adapter --precise "1.2.0" --verbose # idna_adapter 1.2.1 uses ICU4X 2.2.0, requiring 1.86 and newer
5059
- name: Run LDK Node Integration tests
5160
run: |
5261
cd ldk-node

.github/workflows/ping-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ jobs:
3434
steps:
3535
- name: Checkout code
3636
uses: actions/checkout@v3
37+
- name: Install Rust toolchain
38+
run: |
39+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --component rustfmt
40+
rustup default ${{ matrix.toolchain }}
3741
- name: Check formatting
38-
run: rustup component add rustfmt && cd rust && cargo fmt --all -- --check
42+
run: cd rust && cargo fmt --all -- --check
3943
- name: Build and Deploy VSS Server
4044
run: |
4145
cd rust

.github/workflows/postgres-backend-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
uses: actions/checkout@v3
3737
with:
3838
path: vss-server
39+
- name: Install Rust toolchain
40+
run: |
41+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
42+
rustup default ${{ matrix.toolchain }}
3943
4044
- name: Run postgres backend test suite
4145
run: |

.github/workflows/server-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
steps:
3535
- name: Checkout code
3636
uses: actions/checkout@v3
37+
- name: Install Rust toolchain
38+
run: |
39+
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
40+
rustup default ${{ matrix.toolchain }}
3741
- name: Build and Deploy VSS Server
3842
run: |
3943
cd rust

0 commit comments

Comments
 (0)