Skip to content

Commit 9581f94

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

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/libssh2.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,32 @@ jobs:
6767
ref: libssh2-${{ matrix.ref }}
6868
path: libssh2
6969

70+
- name: Update libssh2 test to use a stable version of debian
71+
working-directory: libssh2
72+
run: |
73+
sed -i 's/testing-slim/oldstable-slim/' tests/openssh_server/Dockerfile
74+
75+
- name: Fix Docker port binding for Docker 29
76+
working-directory: libssh2
77+
run: |
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+
7080
- name: Build libssh2
7181
working-directory: libssh2
7282
run: |
7383
autoreconf -fi
7484
./configure --with-crypto=wolfssl --with-libwolfssl-prefix=$GITHUB_WORKSPACE/build-dir
7585
76-
- name: Update libssh2 test to use a stable version of debian
77-
working-directory: libssh2
86+
- name: Diagnostics
7887
run: |
79-
sed -i 's/testing-slim/oldstable-slim/' tests/openssh_server/Dockerfile
88+
docker --version
89+
id=$(docker run --rm -d -p 127.0.0.1::22 debian:oldstable-slim sleep 10)
90+
docker inspect --format '{{ json .NetworkSettings.Ports }}' "$id"
91+
docker stop "$id"
8092
8193
- name: Run libssh2 tests
8294
working-directory: libssh2
83-
run: make -j check
95+
run: make check
8496

8597
- name: Confirm libssh2 built with wolfSSL
8698
run: ldd libssh2/src/.libs/libssh2.so | grep wolfssl

0 commit comments

Comments
 (0)