Fix web build by using build_runner directly (#523)

This commit is contained in:
Kevin Moore 2021-09-13 10:51:20 -07:00 committed by GitHub
parent 7cced9282a
commit 276fd5a70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -42,12 +42,11 @@ jobs:
run: dart analyze --fatal-infos .
- name: Check that grpc-web sample builds with DDC
if: ${{ matrix.sdk == 'dev' }}
# webdev build --no-release to force compilation with DDC.
# build_runner build --no-release to force compilation with DDC.
run: |
dart pub global activate webdev
pushd example/grpc-web
rm -rf build
dart pub global run webdev build --no-release
dart pub run build_runner build --no-release -o web:build
test -f ./build/main.dart.js
popd