@@ -14,49 +14,24 @@ jobs:
1414 name : Build core
1515 runs-on : ubuntu-20.04
1616 steps :
17- - name : Maximize build space
18- uses : easimon/maximize-build-space@master # https://github.com/easimon/maximize-build-space
19- with :
20- root-reserve-mb : 4096
21- temp-reserve-mb : 1024
22- swap-size-mb : 8192
23- remove-dotnet : " true"
24- remove-android : " true"
25- remove-haskell : " true"
2617 - uses : actions/checkout@v3
2718 with :
2819 submodules : ' true'
20+ - uses : ./.github/actions/maximize-disk-space
2921 - uses : ./.github/actions/build-core
3022 build-pruntime :
3123 name : Build pruntime
3224 runs-on : ubuntu-20.04
3325 steps :
34- - name : Maximize build space
35- uses : easimon/maximize-build-space@master # https://github.com/easimon/maximize-build-space
36- with :
37- root-reserve-mb : 4096
38- temp-reserve-mb : 1024
39- swap-size-mb : 8192
40- remove-dotnet : " true"
41- remove-android : " true"
42- remove-haskell : " true"
4326 - uses : actions/checkout@v3
4427 with :
4528 submodules : ' true'
29+ - uses : ./.github/actions/maximize-disk-space
4630 - uses : ./.github/actions/build-pruntime
4731 build-prouter :
4832 name : Build prouter
4933 runs-on : ubuntu-20.04
5034 steps :
51- - name : Maximize build space
52- uses : easimon/maximize-build-space@master # https://github.com/easimon/maximize-build-space
53- with :
54- root-reserve-mb : 4096
55- temp-reserve-mb : 1024
56- swap-size-mb : 8192
57- remove-dotnet : " true"
58- remove-android : " true"
59- remove-haskell : " true"
6035 - uses : actions/checkout@v3
6136 with :
6237 submodules : ' true'
7348 name : Run E2E tests
7449 runs-on : ubuntu-20.04
7550 steps :
76- - name : Maximize build space
77- uses : easimon/maximize-build-space@master # https://github.com/easimon/maximize-build-space
78- with :
79- root-reserve-mb : 4096
80- temp-reserve-mb : 1024
81- swap-size-mb : 8192
82- remove-dotnet : " true"
83- remove-android : " true"
84- remove-haskell : " true"
8551 - uses : actions/checkout@v3
8652 with :
8753 submodules : ' true'
@@ -130,40 +96,24 @@ jobs:
13096 name : Run cargo tests
13197 runs-on : ubuntu-20.04
13298 steps :
133- - name : Maximize build space
134- uses : easimon/maximize-build-space@master # https://github.com/easimon/maximize-build-space
135- with :
136- root-reserve-mb : 4096
137- temp-reserve-mb : 1024
138- swap-size-mb : 8192
139- remove-dotnet : " true"
140- remove-android : " true"
141- remove-haskell : " true"
14299 - uses : actions/checkout@v3
143100 with :
144101 submodules : ' true'
145102 - uses : ./.github/actions/install_toolchain
103+ - uses : ./.github/actions/maximize-disk-space
146104 - name : Run cargo tests
147105 run : cargo test --tests --release --workspace --exclude node-executor --exclude phala-node
148106
149107 cargo-clippy :
150108 name : Run cargo clippy
151109 runs-on : ubuntu-20.04
152110 steps :
153- - name : Maximize build space
154- uses : easimon/maximize-build-space@master # https://github.com/easimon/maximize-build-space
155- with :
156- root-reserve-mb : 4096
157- temp-reserve-mb : 1024
158- swap-size-mb : 8192
159- remove-dotnet : " true"
160- remove-android : " true"
161- remove-haskell : " true"
162111 - uses : actions/checkout@v3
163112 with :
164113 submodules : ' true'
165114 - uses : ./.github/actions/install_toolchain
166115 - name : Install clippy
167116 run : rustup component add clippy
117+ - uses : ./.github/actions/maximize-disk-space
168118 - name : Run cargo clippy
169119 run : cargo clippy --tests -- -D warnings && cd standalone/pruntime && cargo clippy --tests -- -D warnings
0 commit comments