From 8905dc17e8bdac638ab0a2eea865c140b970d395 Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Mon, 1 Apr 2024 10:33:54 +0800 Subject: [PATCH] [VL] CI: Enable GHA dependency cache on static Velox build (#5145) --- .github/workflows/velox_docker.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/velox_docker.yml b/.github/workflows/velox_docker.yml index 128b5ff0f795..c54a6a1e13cb 100644 --- a/.github/workflows/velox_docker.yml +++ b/.github/workflows/velox_docker.yml @@ -50,7 +50,17 @@ jobs: container: inteldpo/gluten-centos-packaging:latest # centos7 with depedencies installed steps: - uses: actions/checkout@v2 + - name: Generate cache key + run: | + echo ${{ hashFiles('./ep/build-velox/src/**', './dev/**', './cpp/*') }} > cache-key + - name: Cache + id: cache + uses: actions/cache@v3 + with: + path: ./cpp/build/releases/ + key: cache-velox-build-${{ hashFiles('./cache-key') }} - name: Build Gluten velox third party + if: ${{ steps.cache.outputs.cache-hit != 'true' }} run: | yum install sudo patch java-1.8.0-openjdk-devel -y && \ cd $GITHUB_WORKSPACE/ep/build-velox/src && \ @@ -62,7 +72,6 @@ jobs: export NUM_THREADS=4 ./dev/builddeps-veloxbe.sh --build_tests=OFF --build_benchmarks=OFF --enable_s3=ON \ --enable_gcs=ON --enable_hdfs=ON --enable_abfs=ON - - uses: actions/upload-artifact@v2 with: path: ./cpp/build/releases/