From 64483305064c646d3f07c78cc779df031ad871e1 Mon Sep 17 00:00:00 2001 From: wangyunlai <90242350+hnwyllmm1@users.noreply.github.com> Date: Fri, 14 Jul 2023 11:06:46 +0800 Subject: [PATCH] cache deps in centos7 --- .github/workflows/compile.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 4c84bd1bc..c5168a613 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -53,9 +53,21 @@ jobs: shell: bash run: yum install -y git wget rpm* cpio make glibc-devel glibc-headers binutils m4 + - name: Cache deps + id: cache-deps + uses: actions/cache@v3 + env: + cache-name: cache-deps + with: + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps/init/oceanbase.el7.x86_64.deps') }} + path: deps/3rd + + - name: Build init + if: steps.cache-deps.outputs.cache-hit != 'true' + run: bash build.sh init + - name: Build project shell: bash run: | - bash build.sh init bash build.sh debug cd build_debug && make -j4