Skip to content

Commit

Permalink
Precompile to zip files (#23982)
Browse files Browse the repository at this point in the history
This means that the size is ~35MB instead of ~100MB.
Also, it maintains the executable bit, simplifying the process after unzip.

GitOrigin-RevId: 69a764c2548a81f24b8de5915aba957f9c5a09d9
  • Loading branch information
nipunn1313 authored and Convex, Inc. committed Mar 26, 2024
1 parent 687d796 commit cc876c6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,13 @@ jobs:
just rush install
just rush build
- name: Install JS
run: |
just rush install
just rush build
- name: Build backend
run: cargo build --release -p local_backend --bin convex-local-backend

- name: Zip backend into arch
run: |
cargo build --release -p local_backend --bin convex-local-backend
mv target/release/convex-local-backend convex-local-backend-${{ matrix.target }}
mv target/release/convex-local-backend .
zip -r convex-local-backend-${{ matrix.target }} convex-local-backend
- name: Precompute release name
id: release_name
Expand All @@ -84,7 +82,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: |
convex-local-backend-${{ matrix.target }}
convex-local-backend-${{ matrix.target }}.zip
LICENSE.md
tag_name: precompiled-${{ steps.release_name.outputs.RELEASE_NAME }}
name: Precompiled ${{ steps.release_name.outputs.RELEASE_NAME }}
Expand Down

0 comments on commit cc876c6

Please sign in to comment.