Skip to content

Commit 38089f1

Browse files
authored
Merge pull request #7643 from julek-wolfssl/net-snmp-action
Add net-snmp action
2 parents a120b83 + fce14ff commit 38089f1

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

.github/workflows/net-snmp.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: net-snmp Tests
2+
3+
# START OF COMMON SECTION
4+
on:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
14+
15+
jobs:
16+
build_wolfssl:
17+
name: Build wolfSSL
18+
# Just to keep it the same as the testing target
19+
runs-on: ubuntu-latest
20+
# This should be a safe limit for the tests to run.
21+
timeout-minutes: 4
22+
steps:
23+
- name: Build wolfSSL
24+
uses: wolfSSL/actions-build-autotools-project@v1
25+
with:
26+
path: wolfssl
27+
configure: --enable-net-snmp
28+
install: true
29+
30+
- name: Upload built lib
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: wolf-install-net-snmp
34+
path: build-dir
35+
retention-days: 5
36+
37+
net-snmp_check:
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
# List of releases to test
42+
include:
43+
- ref: 5.9.3
44+
test_opts: -e 'agentxperl'
45+
name: ${{ matrix.ref }}
46+
runs-on: ubuntu-latest
47+
# This should be a safe limit for the tests to run.
48+
timeout-minutes: 4
49+
needs: build_wolfssl
50+
steps:
51+
- name: Download lib
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: wolf-install-net-snmp
55+
path: build-dir
56+
57+
- name: Checkout OSP
58+
uses: actions/checkout@v4
59+
with:
60+
repository: wolfssl/osp
61+
path: osp
62+
63+
- name: Build net-snmp
64+
uses: wolfSSL/actions-build-autotools-project@v1
65+
with:
66+
repository: net-snmp/net-snmp
67+
ref: v${{ matrix.ref }}
68+
path: net-snmp
69+
patch-file: $GITHUB_WORKSPACE/osp/net-snmp/${{ matrix.ref }}.patch
70+
configure: --disable-shared --with-wolfssl=$GITHUB_WORKSPACE/build-dir
71+
check: false
72+
73+
- name: Run net-snmp tests
74+
working-directory: net-snmp
75+
run: |
76+
autoconf --version | grep -P '2\.\d\d' -o > dist/autoconf-version
77+
make -j test TESTOPTS="${{ matrix.test_opts }}"

0 commit comments

Comments
 (0)