@@ -70,64 +70,64 @@ jobs:
70
70
run : cargo test --workspace --profile ci
71
71
- uses : ./.github/actions/build-teardown
72
72
73
- hardhat-tests :
74
- runs-on : ubuntu-latest
75
- timeout-minutes : 30
76
- needs : prepare
77
- env :
78
- # Default is 2mb which is not enough for Move compiler in debug mode, so we up it to 16mB
79
- RUST_MIN_STACK : 16000000
80
- # if: ${{ needs.prepare.outputs.test-rust == 'true' }}
81
- steps :
82
- - uses : actions/checkout@v2.4.0
83
- - uses : ./.github/actions/build-setup
84
- - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
85
- - name : compile and install move-cli
86
- run : " cargo install --features evm-backend --path language/tools/move-cli"
87
- - name : set up hardhat-move
88
- working-directory : language/evm/hardhat-move
89
- run : " npm install"
90
- - name : compile hardhat-move
91
- working-directory : language/evm/hardhat-move
92
- run : " npm run build"
93
- - name : set up hardhat
94
- working-directory : language/evm/hardhat-examples
95
- run : " ./setup.sh"
96
- - name : run hardhat tests
97
- working-directory : language/evm/hardhat-examples
98
- run : " npx hardhat test"
99
- # TODO: reenable this once we figure a way to keep package-lock.json stable.
100
- # - uses: ./.github/actions/build-teardown
101
-
102
- move-cli-tests-evm :
103
- runs-on : ubuntu-latest
104
- timeout-minutes : 30
105
- needs : prepare
106
- env :
107
- # Default is 2mb which is not enough for Move compiler in debug mode, so we up it to 16mB
108
- RUST_MIN_STACK : 16000000
109
- steps :
110
- - uses : actions/checkout@v2.4.0
111
- - uses : ./.github/actions/build-setup
112
- - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
113
- - name : run EVM-based move cli tests
114
- run : " echo skipped"
115
- # run: "cargo test --features evm-backend -p move-cli --test build_testsuite_evm --test move_unit_tests_evm" TODO: reenable
116
-
117
- move-unit-test-framework-tests-evm :
118
- runs-on : ubuntu-latest
119
- timeout-minutes : 30
120
- needs : prepare
121
- env :
122
- # Default is 2mb which is not enough for Move compiler in debug mode, so we up it to 16mB
123
- RUST_MIN_STACK : 16000000
124
- steps :
125
- - uses : actions/checkout@v2.4.0
126
- - uses : ./.github/actions/build-setup
127
- - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
128
- - name : run EVM-based move unit test framework tests
129
- run : " echo skipped"
130
- # run: "cargo test --features evm-backend -p move-unit-test --test move_unit_test_testsuite" TODO: reenable
73
+ # hardhat-tests:
74
+ # runs-on: ubuntu-latest
75
+ # timeout-minutes: 30
76
+ # needs: prepare
77
+ # env:
78
+ # # Default is 2mb which is not enough for Move compiler in debug mode, so we up it to 16mB
79
+ # RUST_MIN_STACK: 16000000
80
+ # # if: ${{ needs.prepare.outputs.test-rust == 'true' }}
81
+ # steps:
82
+ # - uses: actions/checkout@v2.4.0
83
+ # - uses: ./.github/actions/build-setup
84
+ # - uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
85
+ # - name: compile and install move-cli
86
+ # run: "cargo install --features evm-backend --path language/tools/move-cli"
87
+ # - name: set up hardhat-move
88
+ # working-directory: language/evm/hardhat-move
89
+ # run: "npm install"
90
+ # - name: compile hardhat-move
91
+ # working-directory: language/evm/hardhat-move
92
+ # run: "npm run build"
93
+ # - name: set up hardhat
94
+ # working-directory: language/evm/hardhat-examples
95
+ # run: "./setup.sh"
96
+ # - name: run hardhat tests
97
+ # working-directory: language/evm/hardhat-examples
98
+ # run: "npx hardhat test"
99
+ # # TODO: reenable this once we figure a way to keep package-lock.json stable.
100
+ # # - uses: ./.github/actions/build-teardown
101
+
102
+ # move-cli-tests-evm:
103
+ # runs-on: ubuntu-latest
104
+ # timeout-minutes: 30
105
+ # needs: prepare
106
+ # env:
107
+ # # Default is 2mb which is not enough for Move compiler in debug mode, so we up it to 16mB
108
+ # RUST_MIN_STACK: 16000000
109
+ # steps:
110
+ # - uses: actions/checkout@v2.4.0
111
+ # - uses: ./.github/actions/build-setup
112
+ # - uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
113
+ # - name: run EVM-based move cli tests
114
+ # run: "echo skipped"
115
+ # #run: "cargo test --features evm-backend -p move-cli --test build_testsuite_evm --test move_unit_tests_evm" TODO: reenable
116
+
117
+ # move-unit-test-framework-tests-evm:
118
+ # runs-on: ubuntu-latest
119
+ # timeout-minutes: 30
120
+ # needs: prepare
121
+ # env:
122
+ # # Default is 2mb which is not enough for Move compiler in debug mode, so we up it to 16mB
123
+ # RUST_MIN_STACK: 16000000
124
+ # steps:
125
+ # - uses: actions/checkout@v2.4.0
126
+ # - uses: ./.github/actions/build-setup
127
+ # - uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
128
+ # - name: run EVM-based move unit test framework tests
129
+ # run: "echo skipped"
130
+ # # run: "cargo test --features evm-backend -p move-unit-test --test move_unit_test_testsuite" TODO: reenable
131
131
132
132
diem-framework-build-all-packages :
133
133
runs-on : ubuntu-latest
@@ -174,126 +174,6 @@ jobs:
174
174
run : " echo skipped"
175
175
# run: "language/documentation/examples/diem-framework/prove_all.sh" TODO: reenable
176
176
177
- # Disable benchmarks for now
178
- # Compile (but don't run) the benchmarks, to insulate against bit rot
179
- # build-benchmarks:
180
- # runs-on: ubuntu-latest
181
- # timeout-minutes: 30
182
- # needs: prepare
183
- # if: ${{ needs.prepare.outputs.test-rust == 'true' }}
184
- # steps:
185
- # - uses: actions/checkout@v2.4.0
186
- # - uses: ./.github/actions/build-setup
187
- # - uses: actions/cache@v2.1.6
188
- # with:
189
- # path: "/opt/cargo/git\n/opt/cargo/registry\n/opt/cargo/.package-cache"
190
- # key: crates-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
191
- # restore-keys: "crates-${{ runner.os }}"
192
- # - name: build benchmarks
193
- # run: cargo x bench --no-run
194
- # - uses: ./.github/actions/build-teardown
195
- #
196
- # perf-benchmarks:
197
- # name: run-perf-benchmarks
198
- # runs-on: ubuntu-latest
199
- # timeout-minutes: 30
200
- # needs:
201
- # - prepare
202
- # - build-benchmarks
203
- # env:
204
- # CRITERION_HOME: /tmp/benches
205
- # steps:
206
- # - uses: actions/checkout@v2.4.0
207
- # - uses: actions/cache@v2.1.6
208
- # with:
209
- # path: "/opt/cargo/git\n/opt/cargo/registry\n/opt/cargo/.package-cache"
210
- # key: crates-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
211
- # restore-keys: "crates-${{ runner.os }}"
212
- # - name: Download the previous baseline
213
- # continue-on-error: true
214
- # uses: actions/download-artifact@v2
215
- # with:
216
- # name: bench-baseline
217
- # - name: Run performance benchamrks
218
- # run: |
219
- # # Replace this with a cargo x bench
220
- # cargo bench --package language-benchmarks
221
- # - name: Archive criterion results
222
- # uses: actions/upload-artifact@v2
223
- # with:
224
- # name: bench-baseline
225
- # retention-days: 5
226
- # path: |
227
- # /tmp/benches
228
-
229
- test-move-analyzer-vscode-extension :
230
- name : Test VS Code extension for move-analyzer
231
- strategy :
232
- fail-fast : false
233
- matrix :
234
- os : [ubuntu-20.04, macos-11, windows-2022]
235
- runs-on : ${{ matrix.os }}
236
- needs :
237
- - prepare
238
- steps :
239
- - uses : actions/checkout@v2.4.0
240
- - name : Install rust toolchain
241
- uses : actions-rs/toolchain@v1
242
- - name : Install lld
243
- uses : knicknic/os-specific-run@v1.0.3
244
- with :
245
- linux : sudo apt-get -y install lld
246
- - name : Use Node.js 14
247
- uses : actions/setup-node@v2.4.0
248
- with :
249
- node-version : " 14"
250
- - name : Install NPM dependencies
251
- working-directory : language/move-analyzer/editors/code
252
- run : npm install
253
- - name : Build the extension
254
- working-directory : language/move-analyzer/editors/code
255
- run : npm run pretest
256
- - name : Test the extension
257
- # VS Code tests require display output. This action simulates such a
258
- # display, using Xvfb. (It's roughly equivalent to prefixing the 'run'
259
- # commands below with `xvfb-run <command>`.) Without a simulated display
260
- # such as this one, the tests would fail with the error message:
261
- # "Unable to open X display."
262
- uses : GabrielBB/xvfb-action@v1.5
263
- with :
264
- working-directory : language/move-analyzer/editors/code
265
- run : npm run test
266
-
267
- release-move-analyzer-vscode-extension :
268
- name : Release VS Code extension for move-analyzer
269
- runs-on : ubuntu-20.04
270
- needs :
271
- - prepare
272
- steps :
273
- - uses : actions/checkout@v2.4.0
274
- - name : Install rust toolchain
275
- uses : actions-rs/toolchain@v1
276
- - name : Install lld
277
- run : sudo apt-get -y install lld
278
- - name : Use Node.js 14
279
- uses : actions/setup-node@v2.4.0
280
- with :
281
- node-version : " 14"
282
- - name : Install NPM dependencies
283
- working-directory : language/move-analyzer/editors/code
284
- run : npm install
285
- - name : Build the extension
286
- working-directory : language/move-analyzer/editors/code
287
- run : npm run pretest
288
- - name : Package the extension
289
- working-directory : language/move-analyzer/editors/code
290
- run : npm run package
291
- - name : Upload VS Code extension
292
- uses : actions/upload-artifact@v2
293
- with :
294
- name : move-analyzer-vscode-extension
295
- path : language/move-analyzer/editors/code/move-analyzer.vsix
296
-
297
177
check-for-broken-links :
298
178
name : Check for broken links in files
299
179
runs-on : ubuntu-latest
@@ -313,17 +193,3 @@ jobs:
313
193
# # Don't look in git or target dirs. Don't check png, bib, tex, js, or shell files
314
194
# # We allow links to be redirects, allow duplicates, and we also allow Too Many Requests (429) errors
315
195
# find . -not \( -path "./.git*" -prune \) -not \( -path "./target" -prune \) -type f -not -name "*.png" -not -name "*.ai" -not -name "*.jpg" -not -name "*.svg" -not -name "*.sh" -not -name "*.bib" -not -name "*.tex" -not -name "*.js" -not -name "package-lock.json" | while read arg; do awesome_bot --allow-redirect --allow-dupe --allow 429 --skip-save-results $arg; done
316
-
317
- build-move-cli-docker-image :
318
- name : Build Docker image for the Move CLI
319
- runs-on : ubuntu-latest
320
- needs :
321
- - prepare
322
- steps :
323
- - uses : actions/checkout@v2.4.0
324
- - name : Build Dockerfile
325
- run : " docker build -t move/cli -f docker/move-cli/Dockerfile ."
326
- - name : Build BasicCoin Move module
327
- run : |
328
- cd ./language/documentation/tutorial/step_1/BasicCoin
329
- docker run -v `pwd`:/project move/cli build
0 commit comments