Skip to content

Commit

Permalink
Try this arch thing
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunn1313 committed May 9, 2024
1 parent 8937bbc commit 5a6f161
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ jobs:
just rush install
just rush build
- name: Precompute release name
id: release_name
shell: bash
run: |
echo "RELEASE_NAME=$(date +'%Y-%m-%d')-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
ZIP_NAME=convex-local-backend-${{ matrix.target }}.zip
BINARY_NAME=convex-local-backend${{ runner.os == 'Windows' && '.exe' || '' }}
echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_OUTPUT
echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_OUTPUT
- name: Build backend
shell: bash
run: |
Expand All @@ -75,4 +85,30 @@ jobs:
unset SNAPPY_LIB_DIR
cargo build --release -p local_backend --bin convex-local-backend
ls target/release # TODO(remove)
mv target/release/convex-local-backend .
mv target/release/${{ steps.release_name.BINARY_NAME }} .
ls
- name: Zip backend into arch
uses: thedoctor0/[email protected]
with:
type: zip
filename: ${{ steps.release_name.ZIP_NAME }}
path: ${{ steps.release_name.BINARY_NAME }}

- name: See what we zipped
shell: bash
run: ls # TODO(remove)

- name: Create Upload Precompiled Artifacts
id: create_release
uses: softprops/action-gh-release@v2
with:
files: |
${{ steps.release_name.ZIP_NAME }}
LICENSE.md
tag_name: testing-precompiled-${{ steps.release_name.outputs.RELEASE_NAME }}
name: (TESTING) Precompiled ${{ steps.release_name.outputs.RELEASE_NAME }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5a6f161

Please sign in to comment.