Skip to content

Commit

Permalink
Merge pull request #64 from anywherelan/update-flutter
Browse files Browse the repository at this point in the history
ci: update flutter version in manual build
  • Loading branch information
pymq authored Dec 18, 2022
2 parents 36ec672 + ac88393 commit a7d1495
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@ jobs:
go-version: 1.19.x
cache: true
cache-dependency-path: awl/go.sum
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '12.x'
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.x'
flutter-version: '3.3.x'
channel: 'stable'
- run: flutter --version
- name: Install ndk-bundle
run: $ANDROID_HOME/tools/bin/sdkmanager --install "ndk-bundle"

- name: Build
run: |
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
unset ANDROID_NDK_HOME
cd awl
go install golang.org/x/mobile/cmd/gomobile@latest
go get -d golang.org/x/mobile/cmd/gomobile
Expand All @@ -62,3 +67,11 @@ jobs:
name: awl-release-build
path: awl/build/*
if-no-files-found: error
- name: Assert number of built files
run: |
files_count="$(ls -1q awl/build/ | wc -l)"
echo "built $files_count files"
if [ "$files_count" != "15" ]; then
echo "::error::Files count mismatch"
exit 1
fi
2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* gcc, gtk3, libappindicator3 for awl-tray on Linux ([see more](https://github.com/anywherelan/systray#platform-notes))
- only for development, do not need for release build
* gomobile and Android Studio for Android ([see more](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile))
* Flutter (2.10)
* Flutter (3.3)

## Build

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ build-web() {
flutter build web --release
cp -r "$awlflutterdir/build/web" "$awldir/static"
cd "$awldir"
# at the time of flutter 2.8, canvaskit is saved in build files, but still not used in release run (using CDN instead)
# at the time of flutter 3.3, canvaskit is saved in build files, but still not used in release run (using CDN instead)
# so we don't need extra 15 MB in our binaries
# see https://stackoverflow.com/q/70747972 with answer from core team
rm -rf static/canvaskit
Expand Down

0 comments on commit a7d1495

Please sign in to comment.