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:
101101 - name : Checkout sources
102102 uses : actions/checkout@v1
103103
104+ - name : Cache cargo folder
105+ uses : actions/cache@v1
106+ with :
107+ path : ~/.cargo
108+ key : lint-cargo
109+
104110 - name : Install rust toolchain
105111 uses : hecrj/setup-rust-action@v1
106112 with :
Original file line number Diff line number Diff line change @@ -8,7 +8,12 @@ fn main() {
88
99 let assets_dir = std:: env:: var ( "FLUTTER_ASSET_DIR" ) . expect ( "FLUTTER_ASSET_DIR" ) ;
1010
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+ }
1217
1318 if let Ok ( snapshot) = std:: env:: var ( "FLUTTER_AOT_SNAPSHOT" ) {
1419 if Path :: new ( & snapshot) . exists ( ) {
You can’t perform that action at this time.
0 commit comments