8
8
env :
9
9
RUST_BACKTRACE : 1
10
10
PRUSTI_ASSERT_TIMEOUT : 60000
11
- # Disable incremental builds to reduce disk usage
12
- CARGO_INCREMENTAL : 0
13
11
# The /mnt disk has 66 GB of free space; more than the working directory
14
12
COVERAGE_PATH : /mnt/prusti-coverage
15
13
29
27
- name : Set up the environment
30
28
run : python x.py setup
31
29
30
+ - name : Cache cargo
31
+ uses : Swatinem/rust-cache@v2
32
+ with :
33
+ shared-key : " shared"
34
+
32
35
- name : Enable collection of source-based coverage
33
36
run : |
34
37
# Prepare directory
@@ -44,36 +47,18 @@ jobs:
44
47
- name : Build with cargo
45
48
run : python x.py build --all
46
49
47
- - name : Report disk usage
48
- run : df -h
49
-
50
- - name : Report disk usage
51
- run : df -h
52
-
53
- - name : Run quick cargo tests
54
- run : python x.py test --all quick
55
-
56
- - name : Report disk usage
57
- run : df -h
50
+ - name : Build prusti-contracts-test
51
+ run : |
52
+ cd prusti-contracts/prusti-contracts-test/
53
+ cargo build
58
54
59
- - name : Rerun quick cargo tests, enabling debug dumps to cover more code
55
+ - name : Run quick cargo tests, enabling debug dumps to cover more code
60
56
run : python x.py test quick
61
57
env :
62
58
PRUSTI_DUMP_DEBUG_INFO : true
63
59
PRUSTI_DUMP_VIPER_PROGRAM : true
64
60
PRUSTI_IGNORE_REGIONS : true
65
61
66
- - name : Report disk usage
67
- run : df -h
68
-
69
- - name : Check prusti-contracts
70
- run : |
71
- cd prusti-contracts/prusti-contracts-test/
72
- cargo build
73
-
74
- - name : Report disk usage
75
- run : df -h
76
-
77
62
- name : Run cargo tests
78
63
run : python x.py test --all
79
64
0 commit comments