Skip to content

Commit 182a7df

Browse files
committed
ci: use native-path Maven extraction and parallelize build checks
1 parent 8bfc7c5 commit 182a7df

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,8 @@ jobs:
729729
retention-days: 3
730730

731731
e2e:
732-
needs: [test, e2e-build]
732+
# These jobs consume e2e-build's binaries and can run alongside unit tests.
733+
needs: [e2e-build]
733734
strategy:
734735
fail-fast: false
735736
matrix:
@@ -1270,8 +1271,8 @@ jobs:
12701271
curl -fsSL --retry 3 "$url" -o "$RUNNER_TEMP/maven.tgz"
12711272
curl -fsSL --retry 3 "$url.sha512" -o "$RUNNER_TEMP/maven.sha512"
12721273
python -c 'import hashlib, pathlib, os; p=pathlib.Path(os.environ["RUNNER_TEMP"]); assert hashlib.sha512((p/"maven.tgz").read_bytes()).hexdigest() == (p/"maven.sha512").read_text().split()[0]'
1273-
# stdin avoids GNU tar treating a Windows drive prefix as a remote host.
1274-
tar -xzf - -C "$RUNNER_TEMP" < "$RUNNER_TEMP/maven.tgz"
1274+
# Python accepts native Windows paths for both archive and destination.
1275+
python -m tarfile -e "$RUNNER_TEMP/maven.tgz" "$RUNNER_TEMP"
12751276
launcher="$RUNNER_TEMP/apache-maven-${MAVEN_VERSION}/bin/mvn"
12761277
if [ "$RUNNER_OS" = Windows ]; then launcher="${launcher}.cmd"; fi
12771278
echo "SOCKET_PATCH_MAVEN_E2E_MVN=$launcher" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)