Skip to content

Commit 67700a1

Browse files
committed
Add libssh2 test
1 parent e438131 commit 67700a1

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/libssh2.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: libssh2 Tests
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build_wolfssl:
8+
name: Build wolfSSL
9+
# Just to keep it the same as the testing target
10+
runs-on: ubuntu-latest
11+
# This should be a safe limit for the tests to run.
12+
timeout-minutes: 4
13+
steps:
14+
- name: Build wolfSSL
15+
uses: wolfSSL/actions-build-autotools-project@v1
16+
with:
17+
path: wolfssl
18+
configure: --enable-all
19+
check: false # config is already tested in many other PRB's
20+
install: true
21+
22+
- name: Upload built lib
23+
uses: actions/upload-artifact@v3
24+
with:
25+
name: wolf-install-libssh2
26+
path: build-dir
27+
retention-days: 1
28+
29+
libssh2_check:
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
# List of releases to test
34+
ref: [ 1.11.0 ]
35+
name: ${{ matrix.ref }}
36+
runs-on: ubuntu-latest
37+
# This should be a safe limit for the tests to run.
38+
timeout-minutes: 8
39+
needs: build_wolfssl
40+
steps:
41+
- name: Download lib
42+
uses: actions/download-artifact@v3
43+
with:
44+
name: wolf-install-libssh2
45+
path: build-dir
46+
47+
- name: Build and test libssh2
48+
uses: wolfSSL/actions-build-autotools-project@v1
49+
with:
50+
repository: libssh2/libssh2
51+
ref: libssh2-${{ matrix.ref }}
52+
path: libssh2
53+
configure: --with-crypto=wolfssl --with-libwolfssl-prefix=$GITHUB_WORKSPACE/build-dir
54+
check: true
55+
56+
- name: Confirm libssh2 built with wolfSSL
57+
working-directory: ./libssh2
58+
run: ldd src/.libs/libssh2.so | grep wolfssl

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
uses: ./.github/workflows/packaging.yml
4343
memcached:
4444
uses: ./.github/workflows/memcached.yml
45+
libssh2:
46+
uses: ./.github/workflows/libssh2.yml
4547
# TODO: Currently this test fails. Enable it once it becomes passing.
4648
# haproxy:
4749
# uses: ./.github/workflows/haproxy.yml

0 commit comments

Comments
 (0)