Skip to content

Commit

Permalink
push packages/ into realm/ in prep for ejson/
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Feb 7, 2024
1 parent 7408c20 commit 4b06f74
Show file tree
Hide file tree
Showing 535 changed files with 46 additions and 46 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/binary-combine-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ jobs:
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-android-x86
path: packages/realm_dart/binary/android
path: realm/packages/realm_dart/binary/android
- name: Fetch x86_64 build
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-android-x86_64
path: packages/realm_dart/binary/android
path: realm/packages/realm_dart/binary/android
- name: Fetch armeabi-v7a build
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-android-armeabi-v7a
path: packages/realm_dart/binary/android
path: realm/packages/realm_dart/binary/android
- name: Fetch arm64-v8a build
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-android-arm64-v8a
path: packages/realm_dart/binary/android
path: realm/packages/realm_dart/binary/android

- name: Store combined artifact
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
with:
name: librealm-android
path: packages/realm_dart/binary/android
path: realm/packages/realm_dart/binary/android
retention-days: 1

- name: Delete individual build artifacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ inputs.runner }}
defaults:
run:
working-directory: packages/realm_dart
working-directory: realm/packages/realm_dart
name: Build native
timeout-minutes: 60
strategy:
Expand All @@ -39,8 +39,8 @@ jobs:
if: ${{ !contains(github.head_ref, 'release/') }}
uses: actions/cache@v3
with:
path: ./packages/realm_dart/binary/**
key: binaries-${{ matrix.build }}-${{ inputs.runner }}-${{hashFiles('./packages/realm_dart/src/**')}}
path: ./realm/packages/realm_dart/binary/**
key: binaries-${{ matrix.build }}-${{ inputs.runner }}-${{hashFiles('./realm/packages/realm_dart/src/**')}}


- name: Setup Ninja
Expand All @@ -65,6 +65,6 @@ jobs:
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
with:
name: librealm-${{ matrix.build }}
path: packages/realm_dart/binary/${{ inputs.binary }}/**
path: realm/packages/realm_dart/binary/${{ inputs.binary }}/**
retention-days: 1
if-no-files-found: error
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ jobs:
BAAS_BAASAAS_API_KEY: ${{ secrets.BAASAAS_API_KEY}}
defaults:
run:
working-directory: packages/realm/tests
working-directory: realm/packages/realm/tests

steps:
- name: Checkout
Expand All @@ -305,7 +305,7 @@ jobs:
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-ios
path: packages/realm_dart/binary/ios
path: realm/packages/realm_dart/binary/ios

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -338,7 +338,7 @@ jobs:
path: test-results.json
reporter: dart-json
only-summary: true
working-directory: packages/realm/tests
working-directory: realm/packages/realm/tests

cleanup-cluster-flutter-ios:
name: Cleanup Cluster for Flutter iOS
Expand Down Expand Up @@ -370,7 +370,7 @@ jobs:
defaults:
run:
shell: bash
working-directory: packages/realm/tests
working-directory: realm/packages/realm/tests

steps:
- name: Checkout
Expand All @@ -397,7 +397,7 @@ jobs:
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-android
path: packages/realm_dart/binary/android
path: realm/packages/realm_dart/binary/android

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -440,7 +440,7 @@ jobs:
ndk: 21.0.6113669
arch: x86
cmake: 3.10.2.4988404
script: cd packages/realm/tests && flutter test integration_test/all_tests.dart --dart-define=BAAS_BAASAAS_API_KEY=$BAAS_BAASAAS_API_KEY --dart-define=BAAS_DIFFERENTIATOR=$BAAS_DIFFERENTIATOR --file-reporter=json:test-results.json --suppress-analytics
script: cd realm/packages/realm/tests && flutter test integration_test/all_tests.dart --dart-define=BAAS_BAASAAS_API_KEY=$BAAS_BAASAAS_API_KEY --dart-define=BAAS_DIFFERENTIATOR=$BAAS_DIFFERENTIATOR --file-reporter=json:test-results.json --suppress-analytics

- name: Publish Test Report
uses: dorny/[email protected]
Expand All @@ -450,7 +450,7 @@ jobs:
path: test-results.json
reporter: dart-json
only-summary: true
working-directory: packages/realm/tests
working-directory: realm/packages/realm/tests


cleanup-cluster-flutter-android:
Expand All @@ -473,7 +473,7 @@ jobs:
defaults:
run:
shell: bash
working-directory: packages/realm_generator
working-directory: realm/packages/realm_generator

runs-on: ${{ matrix.os }}-latest
name: Generator Tests
Expand All @@ -491,25 +491,25 @@ jobs:

- name: Delete generated files in realm_dart
run: find . -name "*.realm.dart"
working-directory: packages/realm_dart
working-directory: realm/packages/realm_dart

- name: Run generator in realm_dart
run: |
dart pub get
dart run build_runner build --delete-conflicting-outputs
working-directory: packages/realm_dart
working-directory: realm/packages/realm_dart

- name: Run generator in realm_dart/example
run: |
dart pub get
dart run build_runner build --delete-conflicting-outputs
working-directory: packages/realm_dart/example
working-directory: realm/packages/realm_dart/example

- name: Run generator in realm/example
run: |
dart pub get
dart run build_runner build --delete-conflicting-outputs
working-directory: packages/realm/example
working-directory: realm/packages/realm/example

- name: Install LLVM
run: sudo apt update && sudo apt-get install -y libclang-dev
Expand All @@ -519,7 +519,7 @@ jobs:
run: >-
dart pub global activate ffigen &&
dart pub global run ffigen --config ffigen.yaml
working-directory: packages/realm_dart/
working-directory: realm/packages/realm_dart/

- name: Validate there are no uncommitted changes
run: |
Expand Down Expand Up @@ -552,7 +552,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: generator
path-to-lcov: packages/realm_generator/coverage/lcov.info
path-to-lcov: realm/packages/realm_generator/coverage/lcov.info
parallel: true

- name: Output Coveralls response
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dart-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
timeout-minutes: 45
defaults:
run:
working-directory: packages/realm_dart
working-directory: realm/packages/realm_dart

steps:
- name: Checkout
Expand All @@ -47,7 +47,7 @@ jobs:
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-${{ inputs.os }}
path: packages/realm_dart/binary/${{ inputs.os }}
path: realm/packages/realm_dart/binary/${{ inputs.os }}

- name : Setup Dart SDK
uses: dart-lang/setup-dart@main
Expand All @@ -73,7 +73,7 @@ jobs:
path: test-results.json
reporter: dart-json
only-summary: true
working-directory: packages/realm_dart
working-directory: realm/packages/realm_dart

# we're pruning generated files, the cli folder, as well as realm_bindings.dart from our coverage reports
- name: Generate realm_dart coverage report
Expand All @@ -96,7 +96,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: realm_dart
path-to-lcov: packages/realm_dart/coverage/pruned-lcov.info
path-to-lcov: realm/packages/realm_dart/coverage/pruned-lcov.info
parallel: true

- name: Output Coveralls response
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-baas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/realm_dart
working-directory: realm/packages/realm_dart
name: Deploy BaaS
timeout-minutes: 15
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/flutter-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
BAAS_DIFFERENTIATOR: ${{ inputs.differentiator }}
defaults:
run:
working-directory: packages/realm/tests
working-directory: realm/packages/realm/tests

steps:

Expand All @@ -56,7 +56,7 @@ jobs:
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
with:
name: librealm-${{ inputs.os }}
path: packages/realm_dart/binary/${{ inputs.os }}
path: realm/packages/realm_dart/binary/${{ inputs.os }}

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
--file-reporter=json:test-results.json \
--suppress-analytics
shell: bash
working-directory: packages/realm/tests
working-directory: realm/packages/realm/tests

- name: Publish Test Report
uses: dorny/[email protected]
Expand All @@ -94,4 +94,4 @@ jobs:
path: test-results.json
reporter: dart-json
only-summary: true
working-directory: packages/realm/tests
working-directory: realm/packages/realm/tests
24 changes: 12 additions & 12 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
workflow: ci.yml
commit: ${{ github.sha }}
path: ${{ github.workspace }}/packages/realm_dart/binary/
path: ${{ github.workspace }}/realm/packages/realm_dart/binary/
workflow_conclusion: completed

# The rename is necessary because action-download-artifact will put things in a folder named the same
Expand All @@ -53,7 +53,7 @@ jobs:
targetFile="release/${directory#*-}.tar.gz"
dart run realm_dart archive --source-dir "$directory" --output-file "${{ github.workspace }}/$targetFile"
done
working-directory: packages/realm_dart
working-directory: realm/packages/realm_dart

- name: Update realm_* path dependencies (Production)
uses: jacobtomlinson/gha-find-replace@b76729678e8d52dadb12e0e16454a93e301a919d #! 2.0.0
Expand Down Expand Up @@ -95,25 +95,25 @@ jobs:

- name: Package realm_generator
run: |
cp -Lr ../packages/realm_generator .
cp -Lr ../realm/packages/realm_generator .
cd realm_generator
dart pub publish --dry-run || true
working-directory: release

# realm_flutter has symlinks to native binaries which should not be packaged
- name: Cleanup binary symlinks
run: |
rm packages/realm/android/src/main/cpp/lib
rm packages/realm/ios/src
rm packages/realm/ios/realm_dart.xcframework
rm packages/realm/linux/binary
rm packages/realm/windows/binary
rm packages/realm/macos/librealm_dart.dylib
rm packages/realm/example/binary
rm realm/packages/realm/android/src/main/cpp/lib
rm realm/packages/realm/ios/src
rm realm/packages/realm/ios/realm_dart.xcframework
rm realm/packages/realm/linux/binary
rm realm/packages/realm/windows/binary
rm realm/packages/realm/macos/librealm_dart.dylib
rm realm/packages/realm/example/binary
- name: Package realm (flutter)
run: |
cp -Lr ../packages/realm realm
cp -Lr ../realm/packages/realm realm
cd realm
flutter pub publish --dry-run || true
working-directory: release
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'Production' }}
environment:
name: 'Production'
url: https://pub.dev/packages/realm/versions/${{ needs.prepare-packages.outputs.version }}
url: https://pub.dev/realm/packages/realm/versions/${{ needs.prepare-packages.outputs.version }}
name: Publish release
needs:
- prepare-packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terminate-baas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
timeout-minutes: 15
defaults:
run:
working-directory: packages/realm_dart # TODO: Move out of realm_dart
working-directory: realm/packages/realm_dart # TODO: Move out of realm_dart
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "packages/realm_dart/src/realm-core"]
path = packages/realm_dart/src/realm-core
path = realm/packages/realm_dart/src/realm-core
url = https://github.com/realm/realm-core.git
branch = master
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 4b06f74

Please sign in to comment.