Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update precompile.yml #5

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: "['self-hosted', 'aws', 'x64', 'xlarge']"
- target: x86_64-apple-darwin
# large are on intel
os: "'macos-latest-large'"
- target: aarch64-apple-darwin
# xlarge are on arm
os: "'macos-latest-xlarge'"
- target: x86_64-pc-windows-msvc
os: "'windows-latest'"
#- target: x86_64-unknown-linux-gnu
# os: "['self-hosted', 'aws', 'x64', 'xlarge']"
#- target: x86_64-apple-darwin
# large are on intel
# os: "'macos-latest-large'"
#- target: aarch64-apple-darwin
# xlarge are on arm
#os: "'macos-latest-xlarge'"
#- target: x86_64-pc-windows-msvc
#os: "'windows-latest'"
- target: aarch64-unknown-linux-gnu
os: "['self-hosted', 'aws', 'arm64', 'xlarge']"
name: Build Convex Backend
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
id: release_name
shell: bash
run: |
echo "RELEASE_NAME=$(date +'%Y-%m-%d')-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "RELEASE_NAME=testing-$(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
Expand All @@ -84,6 +84,7 @@ jobs:
unset ROCKSDB_LIB_DIR
unset SODIUM_USE_PKG_CONFIG
unset SNAPPY_LIB_DIR
export OPENSSL_STATIC=1
cargo build --release -p local_backend --bin convex-local-backend
mv target/release/${{ steps.release_name.outputs.BINARY_NAME }} .

Expand All @@ -103,7 +104,7 @@ jobs:
LICENSE.md
tag_name: precompiled-${{ steps.release_name.outputs.RELEASE_NAME }}
name: Precompiled ${{ steps.release_name.outputs.RELEASE_NAME }}
draft: false
prerelease: false
draft: true
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}