Skip to content

Commit c6ebe5e

Browse files
authored
Merge pull request #109 from jepler/compress-our-zip-pls
Compress our zips
2 parents a2123ec + 4f50d27 commit c6ebe5e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
python3 --version
2525
- name: Checkout Current Repo
2626
uses: actions/checkout@v4
27+
with:
28+
filter: 'blob:none'
29+
depth: 0
2730
- name: Install requirements
2831
run: |
2932
sudo apt-get update

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
filter: 'blob:none'
19+
depth: 0
1720
- name: Set up Python
1821
uses: actions/setup-python@v5
1922
with:

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def build_bundle(libs, bundle_version, output_filename, package_folder_prefix,
205205
print()
206206
print("Zipping")
207207

208-
with zipfile.ZipFile(output_filename, 'w') as bundle:
208+
with zipfile.ZipFile(output_filename, 'w', compression=zipfile.ZIP_DEFLATED) as bundle:
209209
build_metadata = {"build-tools-version": build_tools_version}
210210
bundle.comment = json.dumps(build_metadata).encode("utf-8")
211211
if multiple_libs:

0 commit comments

Comments
 (0)