Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit 875a64d

Browse files
committed
Pushing Move on aptos upstream
This PR contains commits from aptos-core over the last 9 months and brings the aptos-main branch up-to-date to get ready for forking. The Cargo.toml has been updated to contain workspace dependencies as now used by the Move code.
1 parent 64f5086 commit 875a64d

File tree

9 files changed

+2224
-1934
lines changed

9 files changed

+2224
-1934
lines changed

.cargo/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ xclippy = [
1919
"-Aclippy::enum-variant-names",
2020
"-Aclippy::result-large-err",
2121
"-Aclippy::mutable-key-type",
22+
"-Aclippy::map-identity",
2223
]
2324

2425
[target.x86_64-pc-windows-msvc]

.github/actions/build-setup/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,5 @@ runs:
6161
- id: rust-environment
6262
shell: bash
6363
run: |
64-
echo 'RUST_BACKTRACE=1' | tee -a $GITHUB_ENV
6564
echo 'DIEM_DUMP_LOGS=1' | tee -a $GITHUB_ENV
6665
echo 'CARGO_INCREMENTAL=0' | tee -a $GITHUB_ENV

.github/workflows/ci-pre-land.yml

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -174,126 +174,6 @@ jobs:
174174
run: "echo skipped"
175175
# run: "language/documentation/examples/diem-framework/prove_all.sh" TODO: reenable
176176

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-
297177
check-for-broken-links:
298178
name: Check for broken links in files
299179
runs-on: ubuntu-latest
@@ -313,17 +193,3 @@ jobs:
313193
# # Don't look in git or target dirs. Don't check png, bib, tex, js, or shell files
314194
# # We allow links to be redirects, allow duplicates, and we also allow Too Many Requests (429) errors
315195
# 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

Comments
 (0)