@@ -30,21 +30,39 @@ jobs:
30
30
with :
31
31
sdk : ' 2.14.1'
32
32
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
+
33
53
- name : Running build for macos
34
54
if : matrix.os == 'macos-latest'
35
55
run : |
36
56
cd packages/command/
37
- dart pub get
38
57
mkdir -p bin/${{ matrix.target }}
39
58
dart2native bin/flutter_gen_command.dart -o bin/${{ matrix.target }}/fluttergen
40
59
41
60
- name : Running build for ubuntu
42
61
if : matrix.os == 'ubuntu-latest'
43
62
run : |
44
63
cd packages/command/
45
- /usr/lib/dart/bin/pub get
46
64
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
48
66
49
67
- name : Packaging final binary
50
68
shell : bash
0 commit comments