Skip to content

Commit 83fb865

Browse files
committed
Experimental: fix libssh2 workflow with Docker 29
1 parent 49ed1fa commit 83fb865

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/libssh2.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,30 @@ jobs:
6767
ref: libssh2-${{ matrix.ref }}
6868
path: libssh2
6969

70-
- name: Build libssh2
70+
- name: Update libssh2 test to use a stable version of debian
7171
working-directory: libssh2
7272
run: |
73-
autoreconf -fi
74-
./configure --with-crypto=wolfssl --with-libwolfssl-prefix=$GITHUB_WORKSPACE/build-dir
73+
sed -i 's/testing-slim/oldstable-slim/' tests/openssh_server/Dockerfile
7574
76-
- name: Update libssh2 test to use a stable version of debian
75+
- name: Fix Docker port binding for Docker 29
7776
working-directory: libssh2
7877
run: |
79-
sed -i 's/testing-slim/oldstable-slim/' tests/openssh_server/Dockerfile
78+
sed -i 's/docker run --rm -d -p 22/docker run --rm -d -p 127.0.0.1::22/' tests/openssh_fixture.c
79+
80+
- name: Build libssh2
81+
working-directory: libssh2
82+
run: |
83+
autoreconf -fi
84+
./configure --with-crypto=wolfssl --with-libwolfssl-prefix=$GITHUB_WORKSPACE/build-dir
85+
make -j
8086
8187
- name: Run libssh2 tests
8288
working-directory: libssh2
83-
run: make -j check
89+
run: make check
8490

8591
- name: Confirm libssh2 built with wolfSSL
8692
run: ldd libssh2/src/.libs/libssh2.so | grep wolfssl
8793

88-
- name: print server logs
94+
- name: print test logs
8995
if: ${{ failure() }}
9096
run: tail -n +1 libssh2/tests/*.log

0 commit comments

Comments
 (0)