File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,20 @@ jobs:
4848 run : mvn -B -V -e -ntp "-Dstyle.color=always" package -DskipTests
4949 env :
5050 MAVEN_OPTS : -Djansi.force=true
51- - name : Download ZooKeeper ${{ matrix.zk }}
51+ - name : Cache ZooKeeper ${{ matrix.zk }}
52+ id : dist-cache
5253 if : matrix.zk != 'nightly'
54+ uses : actions/cache@v4
55+ with :
56+ key : apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
57+ path : apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
58+ - name : Download ZooKeeper ${{ matrix.zk }}
59+ if : matrix.zk != 'nightly' && steps.dist-cache.outputs.cache-hit != 'true'
5360 run : |
5461 curl -O https://archive.apache.org/dist/zookeeper/zookeeper-${{ matrix.zk }}/apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
55- tar -xzvf apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
62+ - name : Extract ZooKeeper ${{ matrix.zk }}
63+ if : matrix.zk != 'nightly'
64+ run : tar -xzvf apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
5665 - name : Test ZooKeeper nightly server and ${{ matrix.zk }} client
5766 if : matrix.zk != 'nightly'
5867 run : tools/ci/test-connectivity.py --server . --client apache-zookeeper-${{ matrix.zk }}-bin
You can’t perform that action at this time.
0 commit comments