Skip to content

Commit 3e303d3

Browse files
authored
Merge pull request #20 from igchor/ci_build
Use docker with prebuild dependencies
2 parents 9291d51 + c06ec45 commit 3e303d3

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: build-cachelib-debian-10
22
on:
3-
push:
4-
pull_request:
3+
schedule:
4+
- cron: '30 5 * * 0,3'
55

66
jobs:
77
build-cachelib-debian-10:

0 commit comments

Comments
 (0)