update ci build
This commit is contained in:
@@ -62,18 +62,6 @@ jobs:
|
|||||||
bundle config path vendor/bundle
|
bundle config path vendor/bundle
|
||||||
bundle install
|
bundle install
|
||||||
|
|
||||||
- name: Build container proxy
|
|
||||||
working-directory: packages/flutter_mozilla_components/javascript/container_proxy
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
npx webpack
|
|
||||||
|
|
||||||
- name: Build readability
|
|
||||||
working-directory: packages/flutter_mozilla_components/javascript/readability
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
npx webpack
|
|
||||||
|
|
||||||
- name: Create key file
|
- name: Create key file
|
||||||
working-directory: app
|
working-directory: app
|
||||||
run: |
|
run: |
|
||||||
@@ -87,14 +75,12 @@ jobs:
|
|||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Setup Flutter dependencies
|
- name: Setup Flutter dependencies
|
||||||
working-directory: app
|
|
||||||
run: |
|
run: |
|
||||||
dart pub global activate melos
|
dart pub global activate melos
|
||||||
melos bootstrap
|
melos bootstrap --no-select
|
||||||
|
|
||||||
- name: Build APK
|
- name: Build browser
|
||||||
working-directory: app
|
run: melos run build-browser --no-select
|
||||||
run: flutter build apk --release --target-platform android-arm,android-arm64 --split-per-abi --no-tree-shake-icons
|
|
||||||
|
|
||||||
- name: Build App Bundle
|
- name: Build App Bundle
|
||||||
if: steps.build-type.outputs.is_prerelease == 'false'
|
if: steps.build-type.outputs.is_prerelease == 'false'
|
||||||
|
|||||||
@@ -67,3 +67,18 @@ melos:
|
|||||||
format:
|
format:
|
||||||
description: Format all Dart files in the workspace
|
description: Format all Dart files in the workspace
|
||||||
exec: dart format .
|
exec: dart format .
|
||||||
|
build-browser:
|
||||||
|
description: Run all preparation scripts and build APK + App Bundle
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
echo "=== Running preparation scripts ==="
|
||||||
|
sh scripts/build-container-proxy.sh
|
||||||
|
sh scripts/build-readability.sh
|
||||||
|
bash scripts/download_bangs.sh
|
||||||
|
python3 scripts/build_quotes_db.py
|
||||||
|
sh scripts/update-bridges.sh
|
||||||
|
sh scripts/update-url-cleaner-catalog.sh
|
||||||
|
sh scripts/update-url-shorteners.sh
|
||||||
|
echo "=== Building APK ==="
|
||||||
|
cd app
|
||||||
|
flutter build apk --release --target-platform android-arm,android-arm64 --split-per-abi --no-tree-shake-icons
|
||||||
|
|||||||
Reference in New Issue
Block a user