Skip to content

Commit f3b6148

Browse files
authored
Merge pull request #7617 from julek-wolfssl/ipmitool
Add ipmitool action
2 parents 0397d90 + 2c644eb commit f3b6148

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

.github/workflows/ipmitool.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: ipmitool 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+
16+
jobs:
17+
build_wolfssl:
18+
name: Build wolfSSL
19+
# Just to keep it the same as the testing target
20+
runs-on: ubuntu-latest
21+
# This should be a safe limit for the tests to run.
22+
timeout-minutes: 4
23+
steps:
24+
- name: Build wolfSSL
25+
uses: wolfSSL/actions-build-autotools-project@v1
26+
with:
27+
path: wolfssl
28+
configure: --enable-all
29+
install: true
30+
# Don't run tests as this config is tested in many other places
31+
check: false
32+
33+
- name: Upload built lib
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: wolf-install-ipmitool
37+
path: build-dir
38+
retention-days: 5
39+
40+
build_ipmitool:
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
git_ref: [ c3939dac2c060651361fc71516806f9ab8c38901 ]
45+
name: ${{ matrix.git_ref }}
46+
runs-on: ubuntu-latest
47+
needs: build_wolfssl
48+
steps:
49+
- name: Download lib
50+
uses: actions/download-artifact@v4
51+
with:
52+
name: wolf-install-ipmitool
53+
path: build-dir
54+
55+
- name: Checkout OSP
56+
uses: actions/checkout@v4
57+
with:
58+
repository: wolfssl/osp
59+
path: osp
60+
61+
- name: Build ipmitool
62+
uses: wolfSSL/actions-build-autotools-project@v1
63+
with:
64+
repository: ipmitool/ipmitool
65+
ref: ${{ matrix.git_ref }}
66+
path: ipmitool
67+
patch-file: $GITHUB_WORKSPACE/osp/ipmitool/*-${{ matrix.git_ref }}.patch
68+
configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir
69+
# No checks included and not running since it depends on hardware
70+
check: false
71+
72+
- name: Confirm built with wolfSSL
73+
working-directory: ipmitool
74+
run: |
75+
ldd src/ipmitool | grep wolfssl
76+
ldd src/ipmievd | grep wolfssl
77+

0 commit comments

Comments
 (0)