Skip to content

Commit 1a04de3

Browse files
committed
porting libsarus build into podman
1 parent 52f0780 commit 1a04de3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/z-test-pipeline.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,23 @@ jobs:
3535
--env GITHUB_REF_NAME="$GITHUB_REF_NAME" \
3636
ghcr.io/sarus-suite/sarus-hooks/ci-runner:latest \
3737
bash -euxc '
38-
mkdir -p $TMP_DIR/dist
38+
mkdir -p $TMP_DIR/opt
39+
cd $TMP_DIR/opt
40+
git clone --recursive https://github.com/sarus-suite/libsarus.git
41+
cd libsarus
3942
40-
export VER=opensuse-15.5
43+
# Building libsarus to std system prefix
44+
mkdir -p build && cd build
45+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
46+
make -j
47+
make install
4148
49+
# Building hooks
50+
cd $TMP_DIR/sarus-hooks
51+
cmake -S . -B build \
52+
-DBUILD_DROPBEAR=0 \
53+
-DENABLE_UNIT_TESTS=0
54+
cmake --install build --prefix /scratch/local/podman-hooks
4255
'
4356
working-directory: ${{ env.TMP_DIR }}/sarus-hooks
4457

0 commit comments

Comments
 (0)