-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gap/foreign_data_wrappers
- Loading branch information
Showing
1,037 changed files
with
41,129 additions
and
10,419 deletions.
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: Build Engines for React native | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
commit: | ||
description: "Commit on the given branch to build" | ||
required: false | ||
|
||
jobs: | ||
build-ios: | ||
# Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit | ||
name: "iOS build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}" | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- name: Output link to real commit | ||
run: echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.commit }} | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
targets: x86_64-apple-ios,aarch64-apple-ios,aarch64-apple-ios-sim | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ runner.os }}-ios-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- run: | | ||
cd query-engine/query-engine-c-abi | ||
make ios | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ios | ||
path: | | ||
${{ github.workspace }}/query-engine/query-engine-c-abi/ios/* | ||
build-android: | ||
# Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit | ||
name: "Android build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Output link to real commit | ||
run: echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.commit }} | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
targets: aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android,i686-linux-android | ||
|
||
- uses: nttld/setup-ndk@v1 | ||
with: | ||
ndk-version: r26d | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ runner.os }}-android-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- run: | | ||
cd query-engine/query-engine-c-abi | ||
make android | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: android | ||
path: | | ||
${{ github.workspace }}/query-engine/query-engine-c-abi/android/* | ||
combine-artifacts: | ||
# Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit | ||
name: "Combine iOS and Android artifacts on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}" | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-ios | ||
- build-android | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Upload combined artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: binaries | ||
path: | | ||
${{ github.workspace }}/ios | ||
${{ github.workspace }}/android | ||
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Rust + WASM common deps | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set default toolchain | ||
shell: bash | ||
run: rustup default stable | ||
|
||
- name: Add WASM target | ||
shell: bash | ||
run: rustup target add wasm32-unknown-unknown | ||
|
||
- uses: cargo-bins/cargo-binstall@main | ||
|
||
- name: Install wasm-bindgen, wasm-opt | ||
shell: bash | ||
run: | | ||
cargo binstall -y \ | ||
[email protected] \ | ||
[email protected] | ||
- name: Install bc | ||
shell: bash | ||
run: sudo apt update && sudo apt-get install -y bc |
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 |
---|---|---|
|
@@ -17,13 +17,15 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v24 | ||
- uses: cachix/install-nix-action@v27 | ||
with: | ||
# we need internet access for the moment | ||
extra_nix_config: | | ||
sandbox = false | ||
- run: | | ||
git config user.email "[email protected]" | ||
git config user.name "prisma-bot" | ||
- name: Generate cargo docs for the workspace to gh-pages branch | ||
run: nix run .#publish-cargo-docs | ||
|
||
- name: Publish engines size to gh-pages branch | ||
run: nix run .#publish-engine-size |
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
Oops, something went wrong.