1616
1717jobs :
1818 prepare :
19- runs-on : ubuntu-20.04
19+ runs-on : ubuntu-latest
2020 outputs :
2121 changes-target-branch : ${{ steps.changes.outputs.changes-target-branch }}
2222 changes-base-git-rev : ${{ steps.changes.outputs.changes-base-git-rev }}
6767 pattern : ' docker/ci\|scripts/dev_setup.sh'
6868
6969 dev-setup-sh-test :
70- runs-on : ubuntu-20.04-xl
70+ runs-on : ubuntu-latest
7171 timeout-minutes : 30
7272 needs : prepare
7373 if : ${{ needs.prepare.outputs.test-dev-setup == 'true' }}
7777 target_os : [github]
7878 steps :
7979 - uses : actions/checkout@v2.4.0
80- with :
81- ref : ${{ github.event.pull_request.head.sha }}
8280 - name : build image with dev-setup.sh
8381 run : docker build -f docker/ci/${{ matrix.target_os }}/Dockerfile -t diem/build_environment:test .
8482 - name : Early terminate workflow
8886 github-token : ${{secrets.GITHUB_TOKEN}}
8987
9088 lint :
91- runs-on : ubuntu-20.04-xl
89+ runs-on : ubuntu-latest
9290 timeout-minutes : 30
9391 needs : prepare
9492 if : ${{ needs.prepare.outputs.any-changes-founds == 'true' }}
9896 - " ${{github.workspace}}:/opt/git/diem"
9997 steps :
10098 - uses : actions/checkout@v2.4.0
101- with :
102- ref : ${{ github.event.pull_request.head.sha }}
10399 - uses : ./.github/actions/build-setup
104100 - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
105101 with :
@@ -118,7 +114,7 @@ jobs:
118114 github-token : ${{secrets.GITHUB_TOKEN}}
119115
120116 unit-test :
121- runs-on : ubuntu-20.04-xl
117+ runs-on : ubuntu-latest
122118 timeout-minutes : 60
123119 needs : prepare
124120 if : ${{ needs.prepare.outputs.test-rust == 'true' }}
@@ -128,9 +124,6 @@ jobs:
128124 - " ${{github.workspace}}:/opt/git/diem"
129125 steps :
130126 - uses : actions/checkout@v2.4.0
131- with :
132- ref : ${{ github.event.pull_request.head.sha }}
133- fetch-depth : 0 # get all the history!!!
134127 - uses : ./.github/actions/build-setup
135128 - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
136129 with :
@@ -163,7 +156,7 @@ jobs:
163156 github-token : ${{secrets.GITHUB_TOKEN}}
164157
165158 hardhat-tests :
166- runs-on : ubuntu-20.04-xl
159+ runs-on : ubuntu-latest
167160 timeout-minutes : 20
168161 needs : prepare
169162 if : ${{ needs.prepare.outputs.test-rust == 'true' }}
@@ -173,8 +166,6 @@ jobs:
173166 - " ${{github.workspace}}:/opt/git/diem"
174167 steps :
175168 - uses : actions/checkout@v2.4.0
176- with :
177- ref : ${{ github.event.pull_request.head.sha }}
178169 - uses : ./.github/actions/build-setup
179170 - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
180171 - name : compile and install move-cli
@@ -202,7 +193,7 @@ jobs:
202193
203194 # Compile (but don't run) the benchmarks, to insulate against bit rot
204195 build-benchmarks :
205- runs-on : ubuntu-20.04-xl
196+ runs-on : ubuntu-latest
206197 timeout-minutes : 30
207198 needs : prepare
208199 if : ${{ needs.prepare.outputs.test-rust == 'true' }}
@@ -212,8 +203,6 @@ jobs:
212203 - " ${{github.workspace}}:/opt/git/diem"
213204 steps :
214205 - uses : actions/checkout@v2.4.0
215- with :
216- ref : ${{ github.event.pull_request.head.sha }}
217206 - uses : ./.github/actions/build-setup
218207 - uses : actions/cache@v2.1.6
219208 with :
@@ -231,7 +220,7 @@ jobs:
231220
232221 perf-benchmarks :
233222 name : run-perf-benchmarks
234- runs-on : ubuntu-20.04-xl
223+ runs-on : ubuntu-latest
235224 timeout-minutes : 30
236225 needs :
237226 - prepare
@@ -240,8 +229,6 @@ jobs:
240229 CRITERION_HOME : /tmp/benches
241230 steps :
242231 - uses : actions/checkout@v2.4.0
243- with :
244- ref : ${{ github.event.pull_request.head.sha }}
245232 - uses : actions/cache@v2.1.6
246233 with :
247234 path : " /opt/cargo/git\n /opt/cargo/registry\n /opt/cargo/.package-cache"
@@ -271,13 +258,11 @@ jobs:
271258
272259 build-move-analyzer-vscode-extension :
273260 name : Build VS Code extension for move-analyzer
274- runs-on : ubuntu-20.04
261+ runs-on : ubuntu-latest
275262 needs :
276263 - prepare
277264 steps :
278265 - uses : actions/checkout@v2.4.0
279- with :
280- ref : ${{ github.event.pull_request.head.sha }}
281266 - name : Use Node.js 14
282267 uses : actions/setup-node@v2.4.0
283268 with :
0 commit comments