@@ -260,36 +260,6 @@ jobs:
260260 gsed -i "s/modal_bottom_sheet: ^3.0.0-pre/modal_bottom_sheet: 2.0.1/g" pubspec.yaml
261261 flutter pub get
262262
263- # ######### PROTOC ONLY FOR FLUTTER 2 ##########
264-
265- - name : Install Protoc
266- if : startsWith(matrix.config.flutter_version, '2') && steps.check_asset.outputs.skip_build != 'true'
267- uses : arduino/setup-protoc@v1
268- with :
269- version : ' 3.x'
270- repo-token : ${{ secrets.GH_TOKEN }}
271-
272- - name : Setup protoc-gen-go and dart-protoc_plugin
273- if : startsWith(matrix.config.flutter_version, '2') && steps.check_asset.outputs.skip_build != 'true'
274- run : |
275- go install github.com/golang/protobuf/protoc-gen-go@latest
276- dart pub global activate protoc_plugin
277-
278- - name : dart-protoc path (non-windows)
279- if : startsWith(matrix.config.flutter_version, '2') && steps.check_asset.outputs.skip_build != 'true' && matrix.config.target != 'windows'
280- run : echo "${HOME}/.pub-cache/bin" >> $GITHUB_PATH
281-
282- - name : dart-protoc path (windows)
283- if : startsWith(matrix.config.flutter_version, '2') && steps.check_asset.outputs.skip_build != 'true' && matrix.config.target == 'windows'
284- run : echo "${HOME}/.pub-cache/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
285-
286- - name : Gen proto class
287- if : startsWith(matrix.config.flutter_version, '2') && steps.check_asset.outputs.skip_build != 'true'
288- run : |
289- protoc --dart_out=lib/ --go_out=go/ protos/*.proto
290-
291- # ########## END PROTOC ###########
292-
293263 - name : Build (windows)
294264 if : steps.check_asset.outputs.skip_build != 'true' && matrix.config.target == 'windows'
295265 run : |
0 commit comments