Skip to content

Commit

Permalink
[VL] CI: Enable GHA dependency cache on static Velox build (apache#5145)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer authored Apr 1, 2024
1 parent 5987277 commit 8905dc1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/velox_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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/
Expand Down

0 comments on commit 8905dc1

Please sign in to comment.