🐛 Fix Hive.init
conflicting from the local storage module
#30
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
name: example build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
nodeVersion: '18' | |
cmakeVersion: '3.26.3' | |
flutterVersion: '3.10.5' | |
jobs: | |
build_windows-app_in_windows: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.nodeVersion }} | |
- uses: jwlawson/actions-setup-cmake@v1.11 | |
with: | |
cmake-version: ${{ env.cmakeVersion }} | |
- run: npm i -g pnpm && pnpm install | |
- name: Build windows dll | |
run: pnpm run build:bridge:windows:release | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutterVersion }} | |
- run: flutter doctor -v | |
- name: windows app build | |
run: | | |
cd webf/ | |
flutter pub get | |
cd example/ | |
flutter build windows --release | |
build_android-app_in_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# Set up the bridge compilation environment | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.nodeVersion }} | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- uses: jwlawson/actions-setup-cmake@v1.11 | |
with: | |
cmake-version: ${{ env.cmakeVersion }} | |
- run: npm i -g pnpm && pnpm install | |
- run: pnpm run build:bridge:android:release | |
# Install Flutter SDK | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutterVersion }} | |
- run: flutter doctor -v | |
- name: android app build | |
run: | | |
cd webf/ | |
flutter pub get | |
cd example/ | |
flutter build apk --release | |
build_ios-app_in_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.nodeVersion }} | |
- uses: jwlawson/actions-setup-cmake@v1.11 | |
with: | |
cmake-version: ${{ env.cmakeVersion }} | |
- run: npm i -g pnpm && pnpm install | |
- run: pnpm run build:bridge:ios:release | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutterVersion }} | |
- run: flutter doctor -v | |
- name: ios app build | |
run: | | |
cd webf/ | |
flutter pub get | |
cd example/ | |
flutter build ios --release --no-codesign | |
build_macos-app_in_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.nodeVersion }} | |
- uses: jwlawson/actions-setup-cmake@v1.11 | |
with: | |
cmake-version: ${{ env.cmakeVersion }} | |
- run: npm i -g pnpm && pnpm install | |
- run: pnpm run build:bridge:macos:release | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutterVersion }} | |
- run: flutter config --enable-macos-desktop | |
- run: flutter doctor -v | |
- name: macos app build | |
run: | | |
cd webf/ | |
flutter pub get | |
cd example/ | |
flutter build macos --release | |
build_linux-app_in_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.nodeVersion }} | |
- uses: jwlawson/actions-setup-cmake@v1.11 | |
with: | |
cmake-version: ${{ env.cmakeVersion }} | |
- run: | | |
sudo apt-get update | |
sudo apt-get install chrpath ninja-build pkg-config libgtk-3-dev -y | |
- run: npm i -g pnpm && pnpm install | |
- run: psnpm run build:bridge:linux:release | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutterVersion }} | |
- run: flutter config --enable-linux-desktop | |
- run: flutter doctor -v | |
- name: linux app build | |
run: | | |
cd webf/ | |
flutter pub get | |
cd example/ | |
flutter build linux --release |