-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ksmbd-tools: move ksmbd-tools build test to github action
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
- Loading branch information
1 parent
06ccd32
commit b823a52
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: ksmbd-tools CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
pull_request: | ||
branches: | ||
- master | ||
- next | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Prerequisite for build test | ||
run: | | ||
sudo apt-get install libnl-3-dev libnl-genl-3-dev krb5-multidev heimdal-multidev ninja-build | ||
gcc --version | ||
g++ --version | ||
pip3 install --user meson | ||
PATH=$HOME/.local/bin:$PATH | ||
-name: autotools build with mit krb5 | ||
run: | | ||
./autogen.sh | ||
./configure | ||
make DISTCHECK_CONFIGURE_FLAGS=--enable-krb5=no distcheck | ||
-name: autotools build with mit krb5 | ||
run: | | ||
./autogen.sh | ||
./configure | ||
make DISTCHECK_CONFIGURE_FLAGS="LIBKRB5_CFLAGS='$(krb5-config.mit --cflags)' LIBKRB5_LIBS='$(krb5-config.mit --libs)' --enable-krb5" distcheck | ||
-name: autotools build with heimdal krb5 | ||
run: | | ||
./autogen.sh | ||
./configure | ||
make DISTCHECK_CONFIGURE_FLAGS="LIBKRB5_CFLAGS='$(krb5-config.heimdal --cflags)' LIBKRB5_LIBS='$(krb5-config.heimdal --libs) -lasn1' --enable-krb5" distcheck | ||
-name: meson build without krb5 | ||
run: | | ||
mkdir build | ||
cd build | ||
meson -Dkrb5=disabled .. | ||
meson dist | ||
-name: meson build with mit krb5 | ||
run: | | ||
mkdir build | ||
cd build | ||
meson -Dkrb5=enabled .. | ||
meson dist | ||
-name: meson build with heimdal krb5 | ||
run: | | ||
mkdir build | ||
cd build | ||
meson -Dkrb5=enabled -Dkrb5_name=heimdal-krb5 .. | ||
meson dist |