From aa1ffa2b9f5c83f0b8de6784ac6d3f563f7f98e4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 6 Jun 2024 11:50:34 +0200 Subject: [PATCH] fix: use correct jobs format --- .github/workflows/build-flutter-new.yml | 38 ++++++++++++++----------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-flutter-new.yml b/.github/workflows/build-flutter-new.yml index 185def8..1894572 100644 --- a/.github/workflows/build-flutter-new.yml +++ b/.github/workflows/build-flutter-new.yml @@ -2,20 +2,24 @@ name: 'Flutter Build' on: [push, pull_request] -steps: - - name: Clone repository - uses: actions/checkout@v4 - - name: Set up Flutter - uses: subosito/flutter-action@v2 - with: - channel: stable - cache: true - flutter-version-file: pubspec.yaml - # optional parameters follow - cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache - cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path - pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies - pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path - - run: flutter --version - - run: flutter pub get - - run: flutter build apk --debug --flavor core +jobs: + build-app: + name: Build + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + cache: true + flutter-version-file: pubspec.yaml + # optional parameters follow + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache + cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path + pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies + pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path + - run: flutter --version + - run: flutter pub get + - run: flutter build apk --debug --flavor core