Skip to content

Commit 9ba4e79

Browse files
committed
should fix ci
1 parent 36b5517 commit 9ba4e79

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

.github/workflows/build-cachelib-docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
IMG_VER: devel
2020
strategy:
2121
matrix:
22-
CONFIG: ["OS=centos OS_VER=8streams PUSH_IMAGE=1"]
22+
CONFIG: ["OS=centos OS_VER=9streams PUSH_IMAGE=1"]
2323
steps:
2424
- name: "System Information"
2525
run: |

docker/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ docker run --privileged=true --name=${CONTAINER_NAME} -i \
8888
--env COVERITY_SCAN_TOKEN=${COVERITY_SCAN_TOKEN} \
8989
--env COVERITY_SCAN_NOTIFICATION_EMAIL=${COVERITY_SCAN_NOTIFICATION_EMAIL} \
9090
--env TEST_TIMEOUT=${TEST_TIMEOUT} \
91-
--env TZ='Europe/Warsaw' \
91+
--env TZ='America/Los_Angeles' \
9292
--shm-size=4G \
9393
-v ${HOST_WORKDIR}:${WORKDIR} \
9494
-v /etc/localtime:/etc/localtime \
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/centos/centos:stream8
1+
FROM quay.io/centos/centos:stream9
22

33
RUN dnf install -y \
44
cmake \
@@ -8,22 +8,20 @@ tzdata \
88
vim \
99
gdb \
1010
clang \
11-
python36 \
12-
glibc-devel.i686 \
1311
xmlto \
1412
uuid \
1513
libuuid-devel \
16-
json-c-devel \
1714
perf \
1815
numactl
1916

2017
RUN dnf -y install gcc-toolset-12
2118
RUN echo "source /opt/rh/gcc-toolset-12/enable" >> /etc/bashrc
19+
2220
SHELL ["/bin/bash", "--login", "-c"]
2321

2422
COPY ./contrib ./contrib
2523
COPY ./docker ./docker
2624
COPY ./cachelib/external ./cachelib/external
27-
25+
RUN ls ./cachelib/external/
2826
RUN ./docker/images/install-cachelib-deps.sh
2927
RUN ./docker/images/install-dsa-deps.sh

docker/images/install-cachelib-deps.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
# Copyright 2022, Intel Corporation
44

55
echo 'Defaults env_keep += "HTTPS_PROXY https_proxy HTTP_PROXY http_proxy NO_PROXY no_proxy"' >> /etc/sudoers
6-
./contrib/prerequisites-centos8.sh
6+
./contrib/prerequisites-centos9.sh
77

8-
for pkg in zstd googleflags googlelog googletest sparsemap fmt folly fizz wangle fbthrift ;
8+
for pkg in zstd googleflags googlelog googletest sparsemap fmt folly fizz wangle mvfst fbthrift ;
99
do
10-
sudo ./contrib/build-package.sh -j -I /opt/ "$pkg"
10+
echo "Building $pkg"
11+
./contrib/build-package.sh -j -v -I /opt/ "$pkg"
1112
done
1213

docker/run-build.sh

+12-8
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ function sudo_password() {
88
echo ${USERPASS} | sudo -Sk $*
99
}
1010

11-
cd ..
12-
mkdir build
13-
cd build
14-
11+
#cd ..
12+
#mkdir build
13+
#cd build
14+
#
1515
source /opt/rh/gcc-toolset-12/enable
16-
17-
cmake ../cachelib -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_BUILD_TYPE=Debug
18-
sudo_password make install -j$(nproc)
19-
16+
#
17+
#cmake ../cachelib -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_BUILD_TYPE=Debug
18+
#sudo_password make install -j$(nproc)
19+
cd $WORKDIR
20+
if [ -d "build-cachelib" ]; then
21+
rm -rf build-cachelib
22+
fi
23+
./contrib/build-package.sh -t -j -v -I /opt/ cachelib
2024
cd /opt/tests && $WORKDIR/run_tests.sh

0 commit comments

Comments
 (0)