File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ jobs:
101
101
- name : Checkout sources
102
102
uses : actions/checkout@v1
103
103
104
+ - name : Cache cargo folder
105
+ uses : actions/cache@v1
106
+ with :
107
+ path : ~/.cargo
108
+ key : lint-cargo
109
+
104
110
- name : Install rust toolchain
105
111
uses : hecrj/setup-rust-action@v1
106
112
with :
Original file line number Diff line number Diff line change @@ -8,7 +8,12 @@ fn main() {
8
8
9
9
let assets_dir = std:: env:: var ( "FLUTTER_ASSET_DIR" ) . expect ( "FLUTTER_ASSET_DIR" ) ;
10
10
11
- let mut args = Vec :: with_capacity ( 1 ) ;
11
+ let mut args = Vec :: with_capacity ( 3 ) ;
12
+
13
+ if let Ok ( observatory_port) = std:: env:: var ( "DART_OBSERVATORY_PORT" ) {
14
+ args. push ( "--disable-service-auth-codes" . to_string ( ) ) ;
15
+ args. push ( format ! ( "--observatory-port={}" , observatory_port) ) ;
16
+ }
12
17
13
18
if let Ok ( snapshot) = std:: env:: var ( "FLUTTER_AOT_SNAPSHOT" ) {
14
19
if Path :: new ( & snapshot) . exists ( ) {
You can’t perform that action at this time.
0 commit comments