Skip to content

Commit

Permalink
Merge branch 'fix/integration_test' into refactor/remove_host_class
Browse files Browse the repository at this point in the history
  • Loading branch information
andycall committed Jul 1, 2022
2 parents 3cdd44a + 2605aa6 commit 84068e4
Show file tree
Hide file tree
Showing 247 changed files with 1,239 additions and 6,414 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* [Flutter](https://flutter.dev/docs/get-started/install) version in the `kraken/pubspec.yaml`
* [CMake](https://cmake.org/) v3.10.0 or later
* [Xcode](https://developer.apple.com/xcode/) (10.12) or later (Running on macOS or iOS)
* [Android NDK](https://developer.android.com/studio/projects/install-ndk) version `21.4.7075529` (Running on Android)
* [Android NDK](https://developer.android.com/studio/projects/install-ndk) version `23.2.8568313` (Running on Android)

1. Install

Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/benchmark.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/bridge_compile_test.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Deploy
uses: taixw2/deploy-aliyun-oss@main
with:
access-key-id: ${{ secrets.OSS_AK }}
access-key-secret: ${{ secrets.OSS_SK }}
bucket: kraken
region: oss-cn-hangzhou
access-key-id: ${{ secrets.ALIYUN_OSS_AK }}
access-key-secret: ${{ secrets.ALIYUN_OSS_SK }}
bucket: andycall
region: oss-cn-beijing
entry: CONTRIBUTORS.svg
42 changes: 38 additions & 4 deletions .github/workflows/integration_test_flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,54 @@ env:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
integration_test:
runs-on: [self-hosted]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.nodeVersion }}
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutterVersion }}
- run: flutter config --enable-macos-desktop
- run: flutter doctor -v
- name: Run Test
run: npm test
id: test
continue-on-error: true
- name: Upload Snapshots
run: node scripts/upload_snapshots.js
- uses: actions/upload-artifact@v2
with:
name: integration_snapshots
path: integration_tests/snapshots
- name: Check on failures
if: steps.test.outcome != 'success'
run: exit 1
plugin_test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.nodeVersion }}
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutterVersion }}
- run: flutter config --enable-macos-desktop
- run: flutter doctor -v
- name: Run Plugin Test
run: npm run pretest && npm run plugin_test
id: test
continue-on-error: true
- uses: actions/upload-artifact@v2
with:
name: plugin_snapshots
path: integration_tests/snapshots/plugins
- name: Check on failures
if: steps.test.outcome != 'success'
run: exit 1

28 changes: 0 additions & 28 deletions .github/workflows/plugin_test_flutter.yml

This file was deleted.

97 changes: 90 additions & 7 deletions .github/workflows/publish_to_dart_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,102 @@ jobs:
with:
name: linux_binary
path: bridge/build/linux/

publishToPubDev:
needs: build_linux_binary
runs-on: [self-hosted, flutter_2.2.0]
build_macos_binary:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- name: NPM INSTALL
run: npm install
- name: Build bridge binary
run: npm run build:bridge:macos:release
- uses: actions/upload-artifact@v2
with:
name: macos_binary
path: bridge/build/macos/
build_ios_binary:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- name: NPM INSTALL
run: npm install
- name: Build bridge binary
run: npm run build:bridge:ios:release
- uses: actions/upload-artifact@v2
with:
name: ios_binary
path: bridge/build/ios/
build_android_binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r23c
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- name: NPM INSTALL
run: npm install
- name: Build bridge binary
run: npm run build:bridge:all:release
run: npm run build:bridge:android:release
- uses: actions/upload-artifact@v2
with:
name: android_binary
path: bridge/build/android/
publish:
needs: [build_linux_binary, build_android_binary, build_ios_binary, build_macos_binary]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutterVersion }}
- name: NPM INSTALL
run: npm install
- name: Set up nightly version
run: node scripts/set_up_nightly_release.js
- uses: actions/download-artifact@v2
with:
name: linux_binary
path: bridge/build/linux/
- name: Publish to dart.dev
run: cd kraken && flutter pub publish --force
- uses: actions/download-artifact@v2
with:
name: ios_binary
path: bridge/build/ios/
- uses: actions/download-artifact@v2
with:
name: macos_binary
path: bridge/build/macos/
- uses: actions/download-artifact@v2
with:
name: android_binary
path: bridge/build/android/
- name: Prepare distribute binaries
run: node scripts/pre_publish_kraken.js
- name: Publish
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
flutter: true
skipTests: true
relativePath: ./kraken

Loading

0 comments on commit 84068e4

Please sign in to comment.