Skip to content

Commit

Permalink
WIP: CI build for RN binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
SevInf committed Apr 24, 2024
1 parent 461fac7 commit 2503407
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 14 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-engines-react-native.yml
@@ -0,0 +1,41 @@
name: Build Engines for React native
on:
# TODO: engineer integration
pull_request:

jobs:
build-ios:
# 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 }}"
env:
SQLITE_MAX_VARIABLE_NUMBER: 250000
SQLITE_MAX_EXPR_DEPTH: 10000

# minimum supported version of macOS
MACOSX_DEPLOYMENT_TARGET: 10.15
runs-on: macos-13

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

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

- uses: dtolnay/rust-toolchain@stable

- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-intel-cargo-${{ hashFiles('**/Cargo.lock') }}

- run: |
cd query-engine/query-engine-c-abi
make ios
3 changes: 1 addition & 2 deletions query-engine/query-engine-c-abi/Makefile
Expand Up @@ -52,5 +52,4 @@ $(ARCHS_IOS): %:

$(XCFRAMEWORK): $(ARCHS_IOS)
lipo -create $(wildcard ../../target/x86_64-apple-ios/release/$(LIB)) $(wildcard ../../target/aarch64-apple-ios-sim/release/$(LIB)) -output simulator_fat/libquery_engine.a
xcodebuild -create-xcframework -library $(wildcard ../../target/aarch64-apple-ios/release/$(LIB)) -headers include -library simulator_fat/libquery_engine.a -headers include -output $@
./copy-ios.sh
xcodebuild -create-xcframework -library $(wildcard ../../target/aarch64-apple-ios/release/$(LIB)) -headers include -library simulator_fat/libquery_engine.a -headers include -output $@
12 changes: 0 additions & 12 deletions query-engine/query-engine-c-abi/copy-ios.sh

This file was deleted.

0 comments on commit 2503407

Please sign in to comment.