From 2dd245f06cda90df76a3956531789598856fe263 Mon Sep 17 00:00:00 2001 From: Namjae Jeon Date: Mon, 4 Nov 2024 15:09:25 +0900 Subject: [PATCH] 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 --- .github/workflows/c-cpp.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 00000000..e13bb12b --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,47 @@ +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