Skip to content

Commit

Permalink
use leap-dev from 5.0.x release; update README; upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Feb 28, 2024
1 parent e3ac18a commit 85a7124
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .cicd/defaults.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"leap-dev":{
"target":"main",
"target":"5",
"prerelease":false
},
"cdt":{
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ jobs:
prereleases: ${{fromJSON(needs.versions.outputs.cdt-prerelease)}}
file: 'cdt_.*amd64.deb'

- name: Install CDT
run: apt-get install -y ./cdt*.deb

- name: Download leap-dev.deb
uses: AntelopeIO/asset-artifact-download-action@v3
with:
Expand All @@ -170,10 +167,11 @@ jobs:
artifact-name: leap-dev-ubuntu22-amd64
container-package: experimental-binaries

- name: Install leap-dev.deb
- name: Install .deb packages
run: |
apt install -y ./leap-dev*.deb
rm ./leap-dev*.deb
apt-get update && apt-get -y upgrade
apt install -y ./*.deb
rm ./*.deb
- name: Download EOS EVM Contract
uses: AntelopeIO/asset-artifact-download-action@v3
Expand All @@ -184,7 +182,6 @@ jobs:
prereleases: ${{fromJSON(needs.versions.outputs.eos-evm-contract-prerelease)}}
file: 'contract.tar.gz'
artifact-name: contract.test-actions-off.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}

- name: Extract EOS EVM Contract
id: evm-contract
Expand All @@ -199,10 +196,16 @@ jobs:
- name: Build EVM Bridge Contracts
run: |
pushd evm-bridge-contracts
mkdir build
pushd build
cmake -Deosevm_DIR=${{ steps.evm-contract.outputs.EVM_CONTRACT }} ..
make -j
cmake -B build -Deosevm_DIR=${{ steps.evm-contract.outputs.EVM_CONTRACT }}
cmake --build build -- -j
tar -pc build | zstd --long -T0 -9 > build.tar.zst
- name: Upload builddir
uses: actions/upload-artifact@v4
with:
name: builddir
path: evm-bridge-contracts/build.tar.zst
compression-level: 0

- name: EVM Bridge Contracts Tests
run: |
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ The `erc20` contracts (both within `solidity_contracts` and `antelope_contracts`
## Dependencies

- CMake 3.16 or later
- [Leap](https://github.com/AntelopeIO/leap) 4.0 or later
+ Currently there is an issue in the 4.0 release of Leap that causes test to fail to build with C++20 (which is necessary due to the silkworm dependency of the erc20 contract).
+ To work around this issue, one option is to build Leap from the main branch of the [leap](https://github.com/AntelopeIO/leap) repo which has changes to support building Leap with C++20.
+ An alternative workaround for this issue is to apply the fix mentioned in https://github.com/AntelopeIO/leap/issues/1497 to a copy of the [release/4.0](https://github.com/AntelopeIO/leap/tree/release/4.0) branch before building Leap. The branch [4.0-with-evm-fix](https://github.com/AntelopeIO/leap/tree/4.0-with-evm-fix) is also available with the fix already applied to a recent copy of the release/4.0 branch.
- [Leap](https://github.com/AntelopeIO/leap) 5.0 or later
- [CDT](https://github.com/AntelopeIO/cdt) 4.0 or later
- solc
+ Used to compile the .sol files.
Expand Down

0 comments on commit 85a7124

Please sign in to comment.