Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.1] Fix CI #37

Merged
merged 23 commits into from
Mar 8, 2024
4 changes: 0 additions & 4 deletions .cicd/defaults.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"leap-dev":{
"target":"main",
"prerelease":false
},
"cdt":{
"target":"4",
"prerelease":false
Expand Down
30 changes: 18 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,21 @@ jobs:
- name: Install CDT
run: apt-get install -y ./cdt*.deb

- name: Download leap-dev.deb
- name: Download Leap - dev binary
uses: AntelopeIO/asset-artifact-download-action@v3
with:
owner: AntelopeIO
repo: leap
file: 'leap-dev.*(x86_64|amd64).deb'
target: ${{needs.versions.outputs.leap-dev-target}}
prereleases: ${{fromJSON(needs.versions.outputs.leap-dev-prerelease)}}
artifact-name: leap-dev-ubuntu22-amd64
target: '^5.0.1'
prereleases: false
file: 'leap-dev.*ubuntu22\.04_amd64.deb'
container-package: experimental-binaries

artifact-name: leap-dev-ubuntu22-amd64

- name: Install leap-dev.deb
run: |
apt install -y ./leap-dev*.deb
rm ./leap-dev*.deb
apt-get update && apt-get install zstd && apt install -y ./leap*.deb
rm ./leap*.deb

- name: Download EOS EVM Contract
uses: AntelopeIO/asset-artifact-download-action@v3
Expand All @@ -199,10 +199,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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ Run the command `make -j`.
The build steps above will build the test as well.

After building, `cd` into the `build` directory and then simply run `ctest`.

Loading