Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change archive format from .zip to .tar.gz and change artifact name. #8

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions src/angle_builder/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def build(self, output_artifact_mode: str, output_folder: str) -> None:
- iphonesimulator-arm64
- iphoneall-universal

The produced artifact is a zip file containing:
The produced artifact is a .tar.gz archive containing:
- libEGL
- libGLESv2
- include folder
Expand Down Expand Up @@ -589,7 +589,7 @@ def build(self, output_artifact_mode: str, output_folder: str) -> None:

with tempfile.TemporaryDirectory() as temp_dir:
self._logger.info(
"Creating zip for branch %s and output_artifact_mode %s",
"Creating archive for branch %s and output_artifact_mode %s",
self.branch,
output_artifact_mode,
)
Expand All @@ -607,13 +607,10 @@ def build(self, output_artifact_mode: str, output_folder: str) -> None:
)
shutil.copy(license_path, temp_dir)

# Create a zip file with libs, include folder and LICENSE
# Create a .tar.gz archive with libs, include folder and LICENSE
shutil.make_archive(
os.path.join(
output_folder,
f"angle-{self.underlined_branch}-{output_artifact_mode}",
),
"zip",
os.path.join(output_folder, f"angle-{output_artifact_mode}"),
"gztar",
root_dir=temp_dir,
verbose=True,
)
Loading