Skip to content

Commit 2dd245f

Browse files
committed
ksmbd-tools: move ksmbd-tools build test to github action
travis-CI no longer free. So moving build test CI to github action. meson build fails with mit krb5, heimdal-krb5. It will be check later. Signed-off-by: Namjae Jeon <[email protected]>
1 parent b59d6f2 commit 2dd245f

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ksmbd-tools CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- next
8+
pull_request:
9+
branches:
10+
- master
11+
- next
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Prerequisite for build test
21+
run: |
22+
sudo apt-get install libnl-3-dev libnl-genl-3-dev krb5-multidev heimdal-multidev ninja-build
23+
gcc --version
24+
g++ --version
25+
pip3 install --user meson
26+
PATH=$HOME/.local/bin:$PATH
27+
- name: autotools build with mit krb5
28+
run: |
29+
./autogen.sh
30+
./configure
31+
make DISTCHECK_CONFIGURE_FLAGS=--enable-krb5=no distcheck
32+
- name: autotools build with mit krb5
33+
run: |
34+
./autogen.sh
35+
./configure
36+
make DISTCHECK_CONFIGURE_FLAGS="LIBKRB5_CFLAGS='$(krb5-config.mit --cflags)' LIBKRB5_LIBS='$(krb5-config.mit --libs)' --enable-krb5" distcheck
37+
- name: autotools build with heimdal krb5
38+
run: |
39+
./autogen.sh
40+
./configure
41+
make DISTCHECK_CONFIGURE_FLAGS="LIBKRB5_CFLAGS='$(krb5-config.heimdal --cflags)' LIBKRB5_LIBS='$(krb5-config.heimdal --libs) -lasn1' --enable-krb5" distcheck
42+
- name: meson build without krb5
43+
run: |
44+
mkdir build
45+
cd build
46+
meson -Dkrb5=disabled ..
47+
meson dist

0 commit comments

Comments
 (0)