Skip to content

Commit

Permalink
Update build.yml to include the build_runner phase
Browse files Browse the repository at this point in the history
Needed for the new test that uses a mock client
  • Loading branch information
781flyingdutchman authored Jan 13, 2025
1 parent 90f6a36 commit a920e08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
strategy:
fail-fast: false
matrix:
# The example Android project setup ist not supported by Flutter 3.10.x
sdk: [ min, stable, beta ]
steps:
- uses: actions/checkout@v4
Expand All @@ -66,6 +65,8 @@ jobs:
cache: true
flutter-version: ${{ matrix.sdk == 'min' && env.FLUTTER_MIN_SDK || '' }}
channel: ${{ matrix.sdk == 'min' && 'stable' || matrix.sdk }}
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- name: Build example APK
working-directory: example
run: flutter build apk
Expand Down Expand Up @@ -93,6 +94,8 @@ jobs:
- uses: maxim-lobanov/setup-cocoapods@v1
with:
version: latest
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- name: Build example iOS package
run: flutter build ios --simulator
working-directory: example
Expand Down Expand Up @@ -123,6 +126,8 @@ jobs:
sudo apt-get install -y ninja-build
sudo apt-get install -y libgtk-3-dev
export CMAKE_CXX_COMPILER=$(which g++)
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- name: Build example Linux package
run: flutter build linux
working-directory: example
Expand All @@ -131,4 +136,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: background-downloader-demo-linux
path: example/build/linux/x64/release/bundle
path: example/build/linux/x64/release/bundle

0 comments on commit a920e08

Please sign in to comment.