File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,41 @@ jobs:
106
106
if : runner.os == 'Windows'
107
107
run : choco install llvm -y
108
108
109
+ - name : Mark working directory as read-only
110
+ # to ensure that the tests always use a temporary directory
111
+ if : runner.os == 'Linux'
112
+ run : |
113
+ mkdir -p target
114
+ touch Cargo.lock
115
+ git submodule update --init --recursive
116
+ chmod -R a-w .
117
+ chmod -R a+w target Cargo.lock
118
+
109
119
- name : Run rocksdb tests
110
120
run : |
111
121
cargo test --all
112
122
cargo test --all --features multi-threaded-cf
113
123
124
+ - name : Mark working directory as writable
125
+ if : runner.os == 'Linux'
126
+ run : chmod -R a+w .
127
+
114
128
- name : Free disk space
115
129
run : cargo clean
116
130
131
+ - name : Mark working directory as read-only
132
+ # to ensure that the tests always use a temporary directory
133
+ if : runner.os == 'Linux'
134
+ run : |
135
+ mkdir -p target
136
+ touch Cargo.lock
137
+ chmod -R a-w .
138
+ chmod -R a+w target Cargo.lock
139
+
117
140
- name : Run rocksdb tests (jemalloc)
118
141
if : runner.os != 'Windows'
119
142
run : cargo test --all --features jemalloc
143
+
144
+ - name : Mark working directory as writable
145
+ if : runner.os == 'Linux'
146
+ run : chmod -R a+w .
You can’t perform that action at this time.
0 commit comments