From 7927f5654efdc3aaacfa95b399478898f920d621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=81=A5=E8=8E=B9?= Date: Sun, 23 Jun 2024 10:11:47 +0800 Subject: [PATCH] wip: Add build hello world workflow --- .github/workflows/hello_world_build.yml | 38 ++++++++++++++++++++ examples/hello_world/distribute_options.yaml | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/hello_world_build.yml diff --git a/.github/workflows/hello_world_build.yml b/.github/workflows/hello_world_build.yml new file mode 100644 index 00000000..8d97162c --- /dev/null +++ b/.github/workflows/hello_world_build.yml @@ -0,0 +1,38 @@ +name: "HelloWorld: Build" + +on: + push: + branches: [main] + pull_request: + types: [opened, reopened] + +jobs: + build-aab: + name: Build AAB + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.22.2 + - run: | + dart ../../packages/flutter_distributor/bin/main.dart package \ + --platform=android \ + --targets aab + working-directory: apps/hello_world + + build-apk: + name: Build APK + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.22.2 + - run: | + dart ../../packages/flutter_distributor/bin/main.dart package \ + --platform=android \ + --targets apk + working-directory: apps/hello_world diff --git a/examples/hello_world/distribute_options.yaml b/examples/hello_world/distribute_options.yaml index fbb21493..1d32b453 100644 --- a/examples/hello_world/distribute_options.yaml +++ b/examples/hello_world/distribute_options.yaml @@ -1,6 +1,6 @@ output: dist/ variables: - FLUTTER_ROOT: ~/fvm/versions/3.16.5 + # FLUTTER_ROOT: ~/fvm/versions/3.16.5 # PGYER_API_KEY: your api key releases: - name: dev-profile