Skip to content

Commit 9489738

Browse files
committed
fixup: Add CI
1 parent 323f1e0 commit 9489738

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,3 +320,19 @@ jobs:
320320
run: cargo fmt --check
321321
- name: Run rustfmt checks on lightning-tests
322322
run: cd lightning-tests && cargo fmt --check
323+
tor-socks5-connect:
324+
runs-on: ubuntu-latest
325+
env:
326+
TOOLCHAIN: 1.75.0
327+
steps:
328+
- name: Checkout source code
329+
uses: actions/checkout@v4
330+
- name: Install tor
331+
run: |
332+
sudo apt install -y tor
333+
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
334+
run: |
335+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
336+
- name: Test tor socks5
337+
run: |
338+
TOR_SOCKS5_PROXY="127.0.0.1:9050" RUSTFLAGS="--cfg=tor_socks5" cargo test --verbose --color always -p lightning-net-tokio

0 commit comments

Comments
 (0)