Skip to content

Commit 17c65d2

Browse files
authored
Merge branch 'main' into chore/find_at_position_spans
2 parents 07d4869 + a2d1c42 commit 17c65d2

19 files changed

+1528
-350
lines changed

.buildkite/engineer

-67
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
name: Build Engines for Apple Intel
2+
23
on:
3-
workflow_dispatch:
4+
workflow_call:
45
inputs:
56
commit:
6-
description: "Commit on the given branch to build"
7+
description: 'Commit on the given branch to build'
8+
type: string
79
required: false
810

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

2122
steps:
2223
- name: Output link to real commit
23-
run: echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
24+
run: echo ${{ github.repository }}/commit/${{ inputs.commit }}
2425

25-
- name: Checkout ${{ github.event.inputs.commit }}
26+
- name: Checkout ${{ inputs.commit }}
2627
uses: actions/checkout@v4
2728
with:
28-
ref: ${{ github.event.inputs.commit }}
29+
ref: ${{ inputs.commit }}
2930

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

@@ -35,16 +36,27 @@ jobs:
3536
~/.cargo/registry
3637
~/.cargo/git
3738
target
38-
key: ${{ runner.os }}-intel-cargo-${{ hashFiles('**/Cargo.lock') }}
39+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
3940

4041
- run: |
4142
cargo build --release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt
4243
44+
- name: Rename files
45+
working-directory: ${{ github.workspace }}/target/release/
46+
run: |
47+
echo "Files in target/release before renaming"
48+
ls -la .
49+
50+
mv libquery_engine.dylib libquery_engine.dylib.node
51+
52+
echo "Files in target/release after renaming"
53+
ls -la .
54+
4355
- uses: actions/upload-artifact@v4
4456
with:
45-
name: binaries
57+
name: darwin
4658
path: |
4759
${{ github.workspace }}/target/release/schema-engine
4860
${{ github.workspace }}/target/release/prisma-fmt
4961
${{ github.workspace }}/target/release/query-engine
50-
${{ github.workspace }}/target/release/libquery_engine.dylib
62+
${{ github.workspace }}/target/release/libquery_engine.dylib.node
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
name: Build Engines for Apple Silicon
2+
23
on:
3-
workflow_dispatch:
4+
workflow_call:
45
inputs:
56
commit:
6-
description: "Commit on the given branch to build"
7+
description: 'Commit on the given branch to build'
8+
type: string
79
required: false
810

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

1819
steps:
1920
- name: Output link to real commit
20-
run: echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
21+
run: echo ${{ github.repository }}/commit/${{ inputs.commit }}
2122

22-
- name: Checkout ${{ github.event.inputs.commit }}
23+
- name: Checkout ${{ inputs.commit }}
2324
uses: actions/checkout@v4
2425
with:
25-
ref: ${{ github.event.inputs.commit }}
26+
ref: ${{ inputs.commit }}
2627

27-
- uses: actions-rust-lang/setup-rust-toolchain@v1
28+
- run: xcodebuild -showsdks
2829

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

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

40-
- run: xcodebuild -showsdks
41-
4240
- run: |
4341
cargo build --target=aarch64-apple-darwin --release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt
4442
43+
- name: Rename files
44+
working-directory: ${{ github.workspace }}/target/aarch64-apple-darwin/release
45+
run: |
46+
echo "Files in target/release before renaming"
47+
ls -la .
48+
49+
mv libquery_engine.dylib libquery_engine.dylib.node
50+
51+
echo "Files in target/release after renaming"
52+
ls -la .
53+
4554
- uses: actions/upload-artifact@v4
4655
with:
47-
name: binaries
56+
name: darwin-arm64
4857
path: |
4958
${{ github.workspace }}/target/aarch64-apple-darwin/release/schema-engine
5059
${{ github.workspace }}/target/aarch64-apple-darwin/release/prisma-fmt
5160
${{ github.workspace }}/target/aarch64-apple-darwin/release/query-engine
52-
${{ github.workspace }}/target/aarch64-apple-darwin/release/libquery_engine.dylib
61+
${{ github.workspace }}/target/aarch64-apple-darwin/release/libquery_engine.dylib.node

0 commit comments

Comments
 (0)