-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix android emulator test * try 2 * Install newer Java * Use 17 * Use gradle 8.5.0 and Java 21 * Update gradle-wrapper.properties * Try to overwrite the gradle cache * Try disabling the cache * Update test gradle packages, revert package properties * More fixes * Upgrade to gradle 8.7 * Revert * Re-enable cache
- Loading branch information
Showing
5 changed files
with
17 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -27,9 +27,9 @@ jobs: | |
name: Build MacOS | ||
uses: ./.github/workflows/build-native.yml | ||
with: | ||
runner: macos-latest | ||
binary: macos | ||
build: '["macos"]' | ||
runner: macos-latest | ||
binary: macos | ||
build: '["macos"]' | ||
|
||
build-linux: | ||
name: Build Linux | ||
|
@@ -406,14 +406,14 @@ jobs: | |
sudo udevadm control --reload-rules | ||
sudo udevadm trigger --name-match=kvm | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: 11 | ||
java-version: 21 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Fetch artifacts | ||
uses: actions/download-artifact@v4 | ||
|
@@ -437,7 +437,7 @@ jobs: | |
path: | | ||
~/.android/avd/* | ||
~/.android/adb* | ||
key: avd-33-x86_64 | ||
key: avd-31-x86_64_2 | ||
|
||
- name: Create Android Emulator and generate snapshot for caching | ||
if: ${{ steps.avd-cache.outputs.cache-hit != 'true' }} | ||
|
@@ -448,9 +448,8 @@ jobs: | |
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
api-level: 31 | ||
arch: x86_64 | ||
ndk: 25.2.9519653 | ||
cmake: 3.10.2.4988404 | ||
script: echo "Generated Emulator snapshot for caching." | ||
ndk: 27.0.12077973 | ||
|
||
- name: Run tests on Android Emulator | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
|
@@ -460,9 +459,8 @@ jobs: | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
api-level: 31 | ||
arch: x86_64 | ||
ndk: 25.2.9519653 | ||
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 | ||
ndk: 27.0.12077973 | ||
|
||
- name: Publish Test Report | ||
uses: dorny/[email protected] | ||
|
@@ -592,7 +590,7 @@ jobs: | |
*<https://github.com/realm/realm-dart/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}|_{{workflow}}_ run id: ${{ github.run_id }} has status _{{jobStatus}}_ >* | ||
<{{refUrl}}|`{{ref}}` - {{description}}> | ||
{{#if description}}<{{diffUrl}}|branch: `{{diffRef}}`>{{/if}} | ||
web-compile: | ||
name: Compile for web | ||
runs-on: ubuntu-latest | ||
|
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