mirror of https://github.com/grpc/grpc-dart.git
Fix web build by using build_runner directly (#523)
This commit is contained in:
parent
7cced9282a
commit
276fd5a70f
|
@ -42,12 +42,11 @@ jobs:
|
||||||
run: dart analyze --fatal-infos .
|
run: dart analyze --fatal-infos .
|
||||||
- name: Check that grpc-web sample builds with DDC
|
- name: Check that grpc-web sample builds with DDC
|
||||||
if: ${{ matrix.sdk == 'dev' }}
|
if: ${{ matrix.sdk == 'dev' }}
|
||||||
# webdev build --no-release to force compilation with DDC.
|
# build_runner build --no-release to force compilation with DDC.
|
||||||
run: |
|
run: |
|
||||||
dart pub global activate webdev
|
|
||||||
pushd example/grpc-web
|
pushd example/grpc-web
|
||||||
rm -rf build
|
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
|
test -f ./build/main.dart.js
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue