Skip to content

Commit f0222c3

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

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/libssh2.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,21 @@ 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+
7075
- name: Build libssh2
7176
working-directory: libssh2
7277
run: |
7378
autoreconf -fi
7479
./configure --with-crypto=wolfssl --with-libwolfssl-prefix=$GITHUB_WORKSPACE/build-dir
80+
make -j
7581
76-
- name: Update libssh2 test to use a stable version of debian
82+
- name: Pre-build Docker image to avoid concurrent docker build race
7783
working-directory: libssh2
78-
run: |
79-
sed -i 's/testing-slim/oldstable-slim/' tests/openssh_server/Dockerfile
84+
run: docker build -t libssh2/openssh_server tests/openssh_server
8085

8186
- name: Run libssh2 tests
8287
working-directory: libssh2
@@ -85,6 +90,6 @@ jobs:
8590
- name: Confirm libssh2 built with wolfSSL
8691
run: ldd libssh2/src/.libs/libssh2.so | grep wolfssl
8792

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

0 commit comments

Comments
 (0)