16
16
17
17
jobs :
18
18
prepare :
19
- runs-on : ubuntu-20.04
19
+ runs-on : ubuntu-latest
20
20
outputs :
21
21
changes-target-branch : ${{ steps.changes.outputs.changes-target-branch }}
22
22
changes-base-git-rev : ${{ steps.changes.outputs.changes-base-git-rev }}
67
67
pattern : ' docker/ci\|scripts/dev_setup.sh'
68
68
69
69
dev-setup-sh-test :
70
- runs-on : ubuntu-20.04-xl
70
+ runs-on : ubuntu-latest
71
71
timeout-minutes : 30
72
72
needs : prepare
73
73
if : ${{ needs.prepare.outputs.test-dev-setup == 'true' }}
77
77
target_os : [github]
78
78
steps :
79
79
- uses : actions/checkout@v2.4.0
80
- with :
80
+ with :
81
81
ref : ${{ github.event.pull_request.head.sha }}
82
82
- name : build image with dev-setup.sh
83
83
run : docker build -f docker/ci/${{ matrix.target_os }}/Dockerfile -t diem/build_environment:test .
88
88
github-token : ${{secrets.GITHUB_TOKEN}}
89
89
90
90
lint :
91
- runs-on : ubuntu-20.04-xl
91
+ runs-on : ubuntu-latest
92
92
timeout-minutes : 30
93
93
needs : prepare
94
94
if : ${{ needs.prepare.outputs.any-changes-founds == 'true' }}
98
98
- " ${{github.workspace}}:/opt/git/diem"
99
99
steps :
100
100
- uses : actions/checkout@v2.4.0
101
- with :
102
- ref : ${{ github.event.pull_request.head.sha }}
103
101
- uses : ./.github/actions/build-setup
104
102
- uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
105
103
with :
@@ -118,7 +116,7 @@ jobs:
118
116
github-token : ${{secrets.GITHUB_TOKEN}}
119
117
120
118
unit-test :
121
- runs-on : ubuntu-20.04-xl
119
+ runs-on : ubuntu-latest
122
120
timeout-minutes : 60
123
121
needs : prepare
124
122
if : ${{ needs.prepare.outputs.test-rust == 'true' }}
@@ -128,9 +126,6 @@ jobs:
128
126
- " ${{github.workspace}}:/opt/git/diem"
129
127
steps :
130
128
- uses : actions/checkout@v2.4.0
131
- with :
132
- ref : ${{ github.event.pull_request.head.sha }}
133
- fetch-depth : 0 # get all the history!!!
134
129
- uses : ./.github/actions/build-setup
135
130
- uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
136
131
with :
@@ -163,7 +158,7 @@ jobs:
163
158
github-token : ${{secrets.GITHUB_TOKEN}}
164
159
165
160
hardhat-tests :
166
- runs-on : ubuntu-20.04-xl
161
+ runs-on : ubuntu-latest
167
162
timeout-minutes : 20
168
163
needs : prepare
169
164
if : ${{ needs.prepare.outputs.test-rust == 'true' }}
@@ -173,8 +168,6 @@ jobs:
173
168
- " ${{github.workspace}}:/opt/git/diem"
174
169
steps :
175
170
- uses : actions/checkout@v2.4.0
176
- with :
177
- ref : ${{ github.event.pull_request.head.sha }}
178
171
- uses : ./.github/actions/build-setup
179
172
- uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
180
173
- name : compile and install move-cli
@@ -200,84 +193,78 @@ jobs:
200
193
with :
201
194
github-token : ${{secrets.GITHUB_TOKEN}}
202
195
203
- # Compile (but don't run) the benchmarks, to insulate against bit rot
204
- build-benchmarks :
205
- runs-on : ubuntu-20.04-xl
206
- timeout-minutes : 30
207
- needs : prepare
208
- if : ${{ needs.prepare.outputs.test-rust == 'true' }}
209
- container :
210
- image : ghcr.io/diem/diem_build_environment:${{ needs.prepare.outputs.changes-target-branch }}
211
- volumes :
212
- - " ${{github.workspace}}:/opt/git/diem"
213
- steps :
214
- - uses : actions/checkout@v2.4.0
215
- with :
216
- ref : ${{ github.event.pull_request.head.sha }}
217
- - uses : ./.github/actions/build-setup
218
- - uses : actions/cache@v2.1.6
219
- with :
220
- path : " /opt/cargo/git\n /opt/cargo/registry\n /opt/cargo/.package-cache"
221
- key : crates-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
222
- restore-keys : " crates-${{ runner.os }}"
223
- - name : build benchmarks
224
- run : cargo x bench --no-run
225
- - uses : ./.github/actions/build-teardown
226
- - name : Early terminate workflow
227
- if : ${{ failure() }}
228
- uses : ./.github/actions/early-terminator
229
- with :
230
- github-token : ${{secrets.GITHUB_TOKEN}}
196
+ # # Compile (but don't run) the benchmarks, to insulate against bit rot
197
+ # build-benchmarks:
198
+ # runs-on: ubuntu-latest
199
+ # timeout-minutes: 30
200
+ # needs: prepare
201
+ # if: ${{ needs.prepare.outputs.test-rust == 'true' }}
202
+ # container:
203
+ # image: ghcr.io/diem/diem_build_environment:${{ needs.prepare.outputs.changes-target-branch }}
204
+ # volumes:
205
+ # - "${{github.workspace}}:/opt/git/diem"
206
+ # steps:
207
+ # - uses: actions/checkout@v2.4.0
208
+ # - uses: ./.github/actions/build-setup
209
+ # - uses: actions/cache@v2.1.6
210
+ # with:
211
+ # path: "/opt/cargo/git\n/opt/cargo/registry\n/opt/cargo/.package-cache"
212
+ # key: crates-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
213
+ # restore-keys: "crates-${{ runner.os }}"
214
+ # - name: build benchmarks
215
+ # run: cargo x bench --no-run
216
+ # - uses: ./.github/actions/build-teardown
217
+ # - name: Early terminate workflow
218
+ # if: ${{ failure() }}
219
+ # uses: ./.github/actions/early-terminator
220
+ # with:
221
+ # github-token: ${{secrets.GITHUB_TOKEN}}
231
222
232
- perf-benchmarks :
233
- name : run-perf-benchmarks
234
- runs-on : ubuntu-20.04-xl
235
- timeout-minutes : 30
236
- needs :
237
- - prepare
238
- - build-benchmarks
239
- env :
240
- CRITERION_HOME : /tmp/benches
241
- steps :
242
- - uses : actions/checkout@v2.4.0
243
- with :
244
- ref : ${{ github.event.pull_request.head.sha }}
245
- - uses : actions/cache@v2.1.6
246
- with :
247
- path : " /opt/cargo/git\n /opt/cargo/registry\n /opt/cargo/.package-cache"
248
- key : crates-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
249
- restore-keys : " crates-${{ runner.os }}"
250
- - name : Download the previous baseline
251
- continue-on-error : true
252
- uses : actions/download-artifact@v2
253
- with :
254
- name : bench-baseline
255
- - name : Run performance benchamrks
256
- run : |
257
- # Replace this with a cargo x bench
258
- cargo bench --package language-benchmarks
259
- - name : Archive criterion results
260
- uses : actions/upload-artifact@v2
261
- with :
262
- name : bench-baseline
263
- retention-days : 5
264
- path : |
265
- /tmp/benches
266
- - name : Early terminate workflow
267
- if : ${{ failure() }}
268
- uses : ./.github/actions/early-terminator
269
- with :
270
- github-token : ${{secrets.GITHUB_TOKEN}}
223
+ # perf-benchmarks:
224
+ # name: run-perf-benchmarks
225
+ # runs-on: ubuntu-latest
226
+ # timeout-minutes: 30
227
+ # needs:
228
+ # - prepare
229
+ # - build-benchmarks
230
+ # env:
231
+ # CRITERION_HOME: /tmp/benches
232
+ # steps:
233
+ # - uses: actions/checkout@v2.4.0
234
+ # - uses: actions/cache@v2.1.6
235
+ # with:
236
+ # path: "/opt/cargo/git\n/opt/cargo/registry\n/opt/cargo/.package-cache"
237
+ # key: crates-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
238
+ # restore-keys: "crates-${{ runner.os }}"
239
+ # - name: Download the previous baseline
240
+ # continue-on-error: true
241
+ # uses: actions/download-artifact@v2
242
+ # with:
243
+ # name: bench-baseline
244
+ # - name: Run performance benchamrks
245
+ # run: |
246
+ # # Replace this with a cargo x bench
247
+ # cargo bench --package language-benchmarks
248
+ # - name: Archive criterion results
249
+ # uses: actions/upload-artifact@v2
250
+ # with:
251
+ # name: bench-baseline
252
+ # retention-days: 5
253
+ # path: |
254
+ # /tmp/benches
255
+ # - name: Early terminate workflow
256
+ # if: ${{ failure() }}
257
+ # uses: ./.github/actions/early-terminator
258
+ # with:
259
+ # github-token: ${{secrets.GITHUB_TOKEN}}
271
260
272
261
build-move-analyzer-vscode-extension :
273
262
name : Build VS Code extension for move-analyzer
274
- runs-on : ubuntu-20.04
263
+ runs-on : ubuntu-latest
275
264
needs :
276
265
- prepare
277
266
steps :
278
267
- uses : actions/checkout@v2.4.0
279
- with :
280
- ref : ${{ github.event.pull_request.head.sha }}
281
268
- name : Use Node.js 14
282
269
uses : actions/setup-node@v2.4.0
283
270
with :
0 commit comments