Skip to content

Commit

Permalink
Merge branch 'main' into fix/f32-relation-joins
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno authored Nov 21, 2024
2 parents 3340e70 + 5b155e0 commit 3bc955e
Show file tree
Hide file tree
Showing 375 changed files with 13,906 additions and 5,275 deletions.
67 changes: 0 additions & 67 deletions .buildkite/engineer

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: Build Engines for Apple Intel

on:
workflow_dispatch:
workflow_call:
inputs:
commit:
description: "Commit on the given branch to build"
description: 'Commit on the given branch to build'
type: string
required: false

jobs:
build:
# Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit
name: "MacOS Intel engines build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}"
name: 'MacOS Intel engines build for commit ${{ inputs.commit }}'
env:
SQLITE_MAX_VARIABLE_NUMBER: 250000
SQLITE_MAX_EXPR_DEPTH: 10000
Expand All @@ -20,12 +21,12 @@ jobs:

steps:
- name: Output link to real commit
run: echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
run: echo ${{ github.repository }}/commit/${{ inputs.commit }}

- name: Checkout ${{ github.event.inputs.commit }}
- name: Checkout ${{ inputs.commit }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit }}
ref: ${{ inputs.commit }}

- uses: actions-rust-lang/setup-rust-toolchain@v1

Expand All @@ -35,16 +36,27 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-intel-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- run: |
cargo build --release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt
- name: Rename files
working-directory: ${{ github.workspace }}/target/release/
run: |
echo "Files in target/release before renaming"
ls -la .
mv libquery_engine.dylib libquery_engine.dylib.node
echo "Files in target/release after renaming"
ls -la .
- uses: actions/upload-artifact@v4
with:
name: binaries
name: darwin
path: |
${{ github.workspace }}/target/release/schema-engine
${{ github.workspace }}/target/release/prisma-fmt
${{ github.workspace }}/target/release/query-engine
${{ github.workspace }}/target/release/libquery_engine.dylib
${{ github.workspace }}/target/release/libquery_engine.dylib.node
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Build Engines for Apple Silicon

on:
workflow_dispatch:
workflow_call:
inputs:
commit:
description: "Commit on the given branch to build"
description: 'Commit on the given branch to build'
type: string
required: false

jobs:
build:
# Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit
name: "MacOS ARM64 (Apple Silicon) engines build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}"
name: 'MacOS ARM64 (Apple Silicon) engines build for commit ${{ inputs.commit }}'
env:
SQLITE_MAX_VARIABLE_NUMBER: 250000
SQLITE_MAX_EXPR_DEPTH: 10000
runs-on: macos-13

steps:
- name: Output link to real commit
run: echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
run: echo ${{ github.repository }}/commit/${{ inputs.commit }}

- name: Checkout ${{ github.event.inputs.commit }}
- name: Checkout ${{ inputs.commit }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit }}
ref: ${{ inputs.commit }}

- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: xcodebuild -showsdks

- name: Install aarch64 toolchain
run: rustup target add aarch64-apple-darwin
- uses: actions-rust-lang/setup-rust-toolchain@v1

- uses: actions/cache@v4
with:
Expand All @@ -37,16 +37,25 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- run: xcodebuild -showsdks

- run: |
cargo build --target=aarch64-apple-darwin --release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt
- name: Rename files
working-directory: ${{ github.workspace }}/target/aarch64-apple-darwin/release
run: |
echo "Files in target/release before renaming"
ls -la .
mv libquery_engine.dylib libquery_engine.dylib.node
echo "Files in target/release after renaming"
ls -la .
- uses: actions/upload-artifact@v4
with:
name: binaries
name: darwin-arm64
path: |
${{ github.workspace }}/target/aarch64-apple-darwin/release/schema-engine
${{ github.workspace }}/target/aarch64-apple-darwin/release/prisma-fmt
${{ github.workspace }}/target/aarch64-apple-darwin/release/query-engine
${{ github.workspace }}/target/aarch64-apple-darwin/release/libquery_engine.dylib
${{ github.workspace }}/target/aarch64-apple-darwin/release/libquery_engine.dylib.node
Loading

0 comments on commit 3bc955e

Please sign in to comment.