Skip to content

Commit 2489b11

Browse files
committed
Fix cache path
1 parent f184431 commit 2489b11

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches: ["master"]
7+
pull-request:
78

89
env:
910
PYTHON_VERSION: "3.10"
@@ -92,6 +93,25 @@ jobs:
9293
key: ${{ runner.os }}-mvn-build-${{ matrix.params.spark-version }}-${{ matrix.params.scala-version }}-${{ hashFiles('pom.xml') }}
9394
restore-keys: ${{ runner.os }}-mvn-build-${{ matrix.params.spark-version }}-${{ matrix.params.scala-version }}-
9495

96+
- name: Restore Spark Binaries cache
97+
uses: actions/cache/restore@v4
98+
with:
99+
path: ~/spark
100+
key: ${{ runner.os }}-spark-binaries-${{ matrix.params.spark-version }}-${{ matrix.params.scala-compat-version }}
101+
restore-keys:
102+
${{ runner.os }}-spark-binaries-${{ matrix.params.spark-version }}-${{ matrix.params.scala-compat-version }}
103+
104+
- name: Rename Spark Binaries cache
105+
run: |
106+
mv ~/spark ./spark-${{ matrix.params.spark-version }}-${{ matrix.params.scala-compat-version }}
107+
./set-version.sh ${{ matrix.params.spark-version }} ${{ matrix.params.scala-version }}
108+
109+
- name: Test snapshot
110+
id: test-package
111+
run: |
112+
# Test the snapshot (needs whl)
113+
./test-release.sh
114+
95115
- name: Publish snapshot
96116
run: |
97117
./set-version.sh ${{ matrix.params.spark-version }} ${{ matrix.params.scala-version }}
@@ -106,17 +126,3 @@ jobs:
106126
run: |
107127
# Build whl
108128
./build-whl.sh
109-
110-
- name: Restore Spark Binaries cache
111-
uses: actions/cache/restore@v4
112-
with:
113-
path: ~/spark-${{ matrix.params.spark-version }}-${{ matrix.params.scala-compat-version }}
114-
key: ${{ runner.os }}-spark-binaries-${{ matrix.params.spark-version }}-${{ matrix.params.scala-compat-version }}
115-
restore-keys:
116-
${{ runner.os }}-spark-binaries-${{ matrix.params.spark-version }}-${{ matrix.params.scala-compat-version }}
117-
118-
- name: Test snapshot
119-
id: test-package
120-
run: |
121-
# Test the snapshot (needs whl)
122-
./test-release.sh

0 commit comments

Comments
 (0)