Skip to content

Commit b1146be

Browse files
committed
Add pam-ipmi action
1 parent 4b77d4c commit b1146be

1 file changed

Lines changed: 79 additions & 0 deletions

File tree

.github/workflows/pam-ipmi.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: pam-ipmi 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-pam-ipmi
37+
path: build-dir
38+
retention-days: 5
39+
40+
build_pam-ipmi:
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
git_ref: [ e4b13e6725abb178f62ee897fe1c0e81b06a9431 ]
45+
name: ${{ matrix.ref }}
46+
runs-on: ubuntu-latest
47+
needs: build_wolfssl
48+
steps:
49+
- name: Install dependencies
50+
run: |
51+
# Don't prompt for anything
52+
export DEBIAN_FRONTEND=noninteractive
53+
sudo apt-get update
54+
sudo apt-get install libpam-dev ninja-build
55+
sudo pip3 install meson
56+
57+
- name: Download lib
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: wolf-install-pam-ipmi
61+
path: build-dir
62+
63+
- name: Checkout OSP
64+
uses: actions/checkout@v4
65+
with:
66+
repository: wolfssl/osp
67+
path: osp
68+
69+
- name: Checkout pam-ipmi
70+
uses: actions/checkout@v4
71+
with:
72+
repository: openbmc/pam-ipmi
73+
path: pam-ipmi
74+
75+
- name: Build pam-ipmi
76+
working-directory: pam-ipmi
77+
run: |
78+
PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build-dir/lib/pkgconfig meson setup build
79+
ninja -C build

0 commit comments

Comments
 (0)