Skip to content

Commit cc876c6

Browse files
nipunn1313Convex, Inc.
authored and
Convex, Inc.
committed
Precompile to zip files (#23982)
This means that the size is ~35MB instead of ~100MB. Also, it maintains the executable bit, simplifying the process after unzip. GitOrigin-RevId: 69a764c2548a81f24b8de5915aba957f9c5a09d9
1 parent 687d796 commit cc876c6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/precompile.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,13 @@ jobs:
6565
just rush install
6666
just rush build
6767
68-
- name: Install JS
69-
run: |
70-
just rush install
71-
just rush build
72-
7368
- name: Build backend
69+
run: cargo build --release -p local_backend --bin convex-local-backend
70+
71+
- name: Zip backend into arch
7472
run: |
75-
cargo build --release -p local_backend --bin convex-local-backend
76-
mv target/release/convex-local-backend convex-local-backend-${{ matrix.target }}
73+
mv target/release/convex-local-backend .
74+
zip -r convex-local-backend-${{ matrix.target }} convex-local-backend
7775
7876
- name: Precompute release name
7977
id: release_name
@@ -84,7 +82,7 @@ jobs:
8482
uses: softprops/action-gh-release@v2
8583
with:
8684
files: |
87-
convex-local-backend-${{ matrix.target }}
85+
convex-local-backend-${{ matrix.target }}.zip
8886
LICENSE.md
8987
tag_name: precompiled-${{ steps.release_name.outputs.RELEASE_NAME }}
9088
name: Precompiled ${{ steps.release_name.outputs.RELEASE_NAME }}

0 commit comments

Comments
 (0)