Skip to content

Commit

Permalink
sui: add translation of the Move code in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clarus committed Aug 27, 2024
1 parent 02aac92 commit 4a1709e
Show file tree
Hide file tree
Showing 65 changed files with 375,235 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,47 @@ jobs:
cd ..
cd ../../..
endGroup
startGroup "Translate Move Sui"
cd third-party/move-sui
cp ../../rust-toolchain ./
cd crates
# move-abstract-stack
cd move-abstract-stack
cargo build
touch src/lib.rs
cargo coq-of-rust
rsync -acv src/ ../../../../CoqOfRust/move_sui/translations/move_abstract_stack/ --include='*/' --include='*.v' --exclude='*'
cd ..
# move-binary-format
cd move-binary-format
cargo build
touch src/lib.rs
cargo coq-of-rust
rsync -acv src/ ../../../../CoqOfRust/move_sui/translations/move_binary_format/ --include='*/' --include='*.v' --exclude='*'
cd ..
# move-bytecode-verifier
cd move-bytecode-verifier
cargo build
touch src/lib.rs
cargo coq-of-rust
rsync -acv src/ ../../../../CoqOfRust/move_sui/translations/move_bytecode_verifier/ --include='*/' --include='*.v' --exclude='*'
cd ..
# move-bytecode-verifier-meter
cd move-bytecode-verifier-meter
cargo build
touch src/lib.rs
cargo coq-of-rust
rsync -acv src/ ../../../../CoqOfRust/move_sui/translations/move_bytecode_verifier_meter/ --include='*/' --include='*.v' --exclude='*'
cd ..
# move-core-types
cd move-core-types
cargo build
touch src/lib.rs
cargo coq-of-rust
rsync -acv src/ ../../../../CoqOfRust/move_sui/translations/move_core_types/ --include='*/' --include='*.v' --exclude='*'
cd ..
cd ../../..
endGroup
startGroup "Check that the diff is empty (excluding submodules)"
git -c color.ui=always diff --exit-code --ignore-submodules=dirty
endGroup
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "third-party/revm"]
path = third-party/revm
url = https://github.com/bluealloy/revm.git
[submodule "third-party/move-sui"]
path = third-party/move-sui
url = https://github.com/move-language/move-sui.git
Loading

0 comments on commit 4a1709e

Please sign in to comment.