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:
48
48
run : mvn -B -V -e -ntp "-Dstyle.color=always" package -DskipTests
49
49
env :
50
50
MAVEN_OPTS : -Djansi.force=true
51
- - name : Download ZooKeeper ${{ matrix.zk }}
51
+ - name : Cache ZooKeeper ${{ matrix.zk }}
52
+ id : dist-cache
52
53
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'
53
60
run : |
54
61
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
56
65
- name : Test ZooKeeper nightly server and ${{ matrix.zk }} client
57
66
if : matrix.zk != 'nightly'
58
67
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