Skip to content

Commit efb554d

Browse files
authored
Cache servers/dist in github actions workflow (#2527)
1 parent 227a312 commit efb554d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,20 @@ jobs:
7272
with:
7373
distribution: temurin
7474
java-version: 23
75-
- name: Pull Kafka release
75+
- name: Restore cached kafka releases
76+
id: cache-servers-dist-restore
77+
uses: actions/cache/restore@v4
78+
with:
79+
path: servers/dist
80+
key: servers-dist-${{ matrix.kafka }}
81+
- name: Install Kafka release
7682
run: make servers/${{ matrix.kafka }}/kafka-bin
83+
- name: Update kafka release cache
84+
id: cache-servers-dist-save
85+
uses: actions/cache/save@v4
86+
with:
87+
path: servers/dist
88+
key: ${{ steps.cache-servers-dist-restore.outputs.cache-primary-key }}
7789
- name: Pytest
7890
run: make test
7991
env:

0 commit comments

Comments
 (0)