@@ -30,21 +30,39 @@ jobs:
3030 with :
3131 sdk : ' 2.14.1'
3232
33+ - name : Set environment for macos and ubuntu
34+ if : startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
35+ run : echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
36+
37+ - name : Set environment for Windows
38+ if : startsWith(matrix.os, 'windows')
39+ run : echo "%LOCALAPPDATA%\Pub\Cache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
40+
41+ - name : Get dependencies for macos and ubuntu
42+ if : startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
43+ run : |
44+ dart pub global activate melos
45+ melos run pub:get
46+
47+ - name : Get dependencies for Windows
48+ if : startsWith(matrix.os, 'windows')
49+ run : |
50+ dart pub global activate melos 1.0.0-dev.3
51+ melos run pub:get
52+
3353 - name : Running build for macos
3454 if : matrix.os == 'macos-latest'
3555 run : |
3656 cd packages/command/
37- dart pub get
3857 mkdir -p bin/${{ matrix.target }}
3958 dart2native bin/flutter_gen_command.dart -o bin/${{ matrix.target }}/fluttergen
4059
4160 - name : Running build for ubuntu
4261 if : matrix.os == 'ubuntu-latest'
4362 run : |
4463 cd packages/command/
45- /usr/lib/dart/bin/pub get
4664 mkdir -p bin/${{ matrix.target }}
47- /usr/lib/dart/bin/ dart2native bin/flutter_gen_command.dart -o bin/${{ matrix.target }}/fluttergen
65+ dart2native bin/flutter_gen_command.dart -o bin/${{ matrix.target }}/fluttergen
4866
4967 - name : Packaging final binary
5068 shell : bash
0 commit comments