Skip to content

Commit 5e69ebd

Browse files
committed
Run CI on prebuild docker image
1 parent ee16a0a commit 5e69ebd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ jobs:
88
name: "CentOS/latest - Build CacheLib with all dependencies"
99
runs-on: ubuntu-latest
1010
# Docker container image name
11-
container: "centos:latest"
11+
container: "ghcr.io/igchor/cachelib-deps:centos8"
1212
steps:
13-
- name: "update packages"
14-
run: dnf upgrade -y
15-
- name: "install sudo,git"
16-
run: dnf install -y sudo git cmake gcc
1713
- name: "System Information"
1814
run: |
1915
echo === uname ===
@@ -32,8 +28,10 @@ jobs:
3228
gcc -v
3329
- name: "checkout sources"
3430
uses: actions/checkout@v2
31+
- name: "print workspace"
32+
run: echo $GITHUB_WORKSPACE
3533
- name: "build CacheLib using build script"
36-
run: ./contrib/build.sh -j -v -T
34+
run: mkdir build && cd build && cmake ../cachelib -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_BUILD_TYPE=Debug && make install -j$(nproc)
3735
- name: "run tests"
3836
timeout-minutes: 60
39-
run: cd opt/cachelib/tests && ../../../run_tests.sh
37+
run: cd /opt/tests && $GITHUB_WORKSPACE/run_tests.sh

0 commit comments

Comments
 (0)