File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 38
38
cache-target : release
39
39
40
40
- run : cargo install --path crates/cargo-codspeed
41
-
42
41
- run : cargo codspeed build -p codspeed
43
42
- run : cargo codspeed build -p codspeed-bencher-compat
44
43
- run : cargo codspeed build --features async_futures -p codspeed-criterion-compat
48
47
with :
49
48
run : cargo codspeed run
50
49
token : ${{ secrets.CODSPEED_TOKEN }}
50
+ - name : Tmate Session
51
+ uses : mxschmitt/action-tmate@v3
52
+ if : always()
53
+ timeout-minutes : 15
Original file line number Diff line number Diff line change 1
- use std:: io;
1
+ use std:: io:: { self , Write } ;
2
2
use std:: path:: { Path , PathBuf } ;
3
3
use std:: process:: Command ;
4
4
@@ -44,7 +44,13 @@ pub fn get_cargo_workspace_root() -> PathBuf {
44
44
. current_dir ( env ! ( "CARGO_MANIFEST_DIR" ) )
45
45
. output ( )
46
46
. expect ( "Failed to execute `cargo metadata`" ) ;
47
-
47
+ // Write stdout to /tmp/codspeed-cargo-metadata.txt
48
+ let mut file = std:: fs:: File :: create ( "/tmp/codspeed-cargo-metadata.txt" ) . unwrap ( ) ;
49
+ file. write_all ( & output. stdout ) . unwrap ( ) ;
50
+ file. flush ( ) . unwrap ( ) ;
51
+ let mut file = std:: fs:: File :: create ( "/tmp/codspeed-cargo-metadata.err.txt" ) . unwrap ( ) ;
52
+ file. write_all ( & output. stderr ) . unwrap ( ) ;
53
+ file. flush ( ) . unwrap ( ) ;
48
54
let metadata: serde_json:: Value =
49
55
serde_json:: from_slice ( & output. stdout ) . expect ( "Failed to parse `cargo metadata` output" ) ;
50
56
You can’t perform that action at this time.
0 commit comments