Skip to content

Commit

Permalink
[move] multi_action initialization with offer pattern (#288)
Browse files Browse the repository at this point in the history
Co-authored-by: 0o-de-lally <[email protected]>
  • Loading branch information
soaresa and 0o-de-lally authored Jul 19, 2024
1 parent b86130b commit e347fd7
Show file tree
Hide file tree
Showing 25 changed files with 4,417 additions and 2,080 deletions.
23 changes: 20 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@ rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C",

# TODO(grao): Figure out whether we should enable other cpu features, and whether we should use a different way to configure them rather than list every single one here.
[target.x86_64-unknown-linux-gnu]
rustflags = ["--cfg", "tokio_unstable", "-C", "link-arg=-fuse-ld=lld", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-C", "target-feature=+sse4.2"]
rustflags = [
"--cfg",
"tokio_unstable",
"-C",
"link-arg=-fuse-ld=lld",
"-C",
"force-frame-pointers=yes",
"-C",
"force-unwind-tables=yes",
"-C",
"target-feature=+sse4.2",
]

# 64 bit MSVC
[target.x86_64-pc-windows-msvc]
Expand All @@ -27,5 +38,11 @@ rustflags = [
"-C",
"force-unwind-tables=yes",
"-C",
"link-arg=/STACK:8000000" # Set stack to 8 MB
]
"link-arg=/STACK:8000000", # Set stack to 8 MB
]

[target.aarch64-apple-darwin]
rustflags = [
"-C",
"link-arg=-L/opt/homebrew/opt/gmp",
]
26 changes: 21 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- "release**"
- "main**"
schedule:
- cron: '30 00 * * *'
- cron: "30 00 * * *"

env:
DIEM_FORGE_NODE_BIN_PATH: ${{github.workspace}}/diem-node
Expand Down Expand Up @@ -193,7 +193,20 @@ jobs:
needs: [build-framework]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check out code
uses: actions/checkout@v3

- name: Get branch name
id: get_branch
uses: actions/github-script@v6
with:
script: |
const branch = process.env.GITHUB_HEAD_REF || process.env.GITHUB_REF_NAME || context.ref.replace('refs/heads/', '');
core.setOutput('branch', branch);
- name: Print branch name
run: |
echo "Branch name: ${{ steps.get_branch.outputs.branch }}"
- name: setup env
uses: ./.github/actions/build_env
Expand All @@ -216,10 +229,13 @@ jobs:

- name: upgrade - should be backwards compatible
# should always run unless we explicitly mark the branch or tag as "breaking"
if: ${{ ! contains(github.ref_name, 'breaking/') }}
if: ${{ !contains(steps.get_branch.outputs.branch, 'breaking/') }}
working-directory: ./upgrade-tests
# NOTE: upgrade tests which compile Move code, and then submit in the same thread will cause a stack overflow with the default rust stack size.
run: RUST_MIN_STACK=104857600 cargo test compatible_
# NOTE: upgrade tests which compile Move code, and then submit in the same thread will cause a stack overflow com o tamanho padrão da pilha
run: |
echo "Branch name inside check: ${{ steps.get_branch.outputs.branch }}"
RUST_MIN_STACK=104857600 cargo test compatible_
rescue:
timeout-minutes: 60
needs: [build-framework]
Expand Down
Loading

0 comments on commit e347fd7

Please sign in to comment.