File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -348,10 +348,18 @@ jobs:
348348 path : ${{ runner.temp }}/example-shared-assets
349349
350350 - name : Extract shared example assets
351- shell : bash
351+ shell : python
352352 run : |
353- mkdir -p bindings/python/examples
354- tar -xzf "$RUNNER_TEMP/example-shared-assets/example-shared-assets.tar.gz" -C bindings/python/examples
353+ import os
354+ import tarfile
355+ from pathlib import Path
356+
357+ archive_path = Path(os.environ["RUNNER_TEMP"]) / "example-shared-assets" / "example-shared-assets.tar.gz"
358+ target_dir = Path("bindings/python/examples")
359+ target_dir.mkdir(parents=True, exist_ok=True)
360+
361+ with tarfile.open(archive_path, "r:gz") as archive:
362+ archive.extractall(target_dir)
355363
356364 - name : Set up Java (for native builds on macOS/Windows)
357365 if : matrix.platform != 'linux/amd64' && matrix.platform != 'linux/arm64'
You can’t perform that action at this time.
0 commit comments