-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8937bbc
commit 5a6f161
Showing
1 changed file
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 }} |