forked from cosmos/relayer
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 148-create-workflow-to-check-pr-label-and-au…
…to-label-pr
- Loading branch information
Showing
35 changed files
with
818 additions
and
249 deletions.
There are no files selected for viewing
Submodule archway
updated
42 files
Submodule icon-ibc-setup
deleted from
ebf04b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Deploy Relayer Locally | ||
|
||
name: Test Relayer Locally - Icon/Archway | ||
on: | ||
push: | ||
branches: | ||
|
@@ -32,18 +31,6 @@ jobs: | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
shell: bash | ||
|
||
# Install rust toolchain | ||
- name: Install rust stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.69.0 | ||
target: wasm32-unknown-unknown | ||
override: true | ||
profile: minimal | ||
|
||
- name: Cache Rust dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
# Build relay | ||
- name: Build relayer | ||
run: make install | ||
|
@@ -56,23 +43,75 @@ jobs: | |
- name: Build archwayd | ||
working-directory: .github/scripts/archway | ||
run: | | ||
echo $PWD | ||
echo $GITHUB_WORKSPACE | ||
git clean -fdx | ||
git checkout v4.0.0 | ||
make install | ||
# Build comsmwasm | ||
- name: Compile WASM | ||
working-directory: .github/scripts/IBC-Integration | ||
- name: Fetch Latest IBC-Integration Tag | ||
id: fetch_ibc_tag | ||
run: | | ||
rustup component add rustfmt --toolchain 1.69.0-x86_64-unknown-linux-gnu | ||
rustup component add clippy --toolchain 1.69.0-x86_64-unknown-linux-gnu | ||
bash ./optimize_build.sh | ||
TAG_IBC=$(curl -s "https://api.github.com/repos/icon-project/IBC-Integration/tags" | jq -r '.[0].name') | ||
echo "TAG_IBC=$TAG_IBC" >> $GITHUB_ENV | ||
- name: Fetch Latest xcall-multi Tag | ||
id: fetch_xcall_tag | ||
run: | | ||
TAG_XCALL=$(curl -s "https://api.github.com/repos/icon-project/xcall-multi/tags" | jq -r '.[0].name') | ||
echo "TAG_XCALL=$TAG_XCALL" >> $GITHUB_ENV | ||
- name: Get Latest tag - IBC-Integration | ||
id: ibc_tag | ||
run: echo "tag=$(curl -s "https://api.github.com/repos/icon-project/IBC-Integration/tags" | jq -r '.[0].name')" >> $GITHUB_OUTPUT | ||
|
||
- name: Get Latest tag - xcall-multi | ||
id: xcall_tag | ||
run: echo "tag=$(curl -s "https://api.github.com/repos/icon-project/xcall-multi/tags" | jq -r '.[0].name')" >> $GITHUB_OUTPUT | ||
|
||
|
||
- name: Build javascore | ||
working-directory: .github/scripts/IBC-Integration/contracts/javascore | ||
- name: Download IBC Core Javascore Contracts | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: "icon-project/IBC-Integration" | ||
tag: "${{ steps.ibc_tag.outputs.tag }}" | ||
# latest: true | ||
fileName: "*.jar" | ||
out-file-path: "./.github/scripts/IBC-Integration/artifacts/icon" | ||
|
||
|
||
- name: Download IBC Core Cosmwasm Contracts | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: "icon-project/IBC-Integration" | ||
tag: "${{ steps.ibc_tag.outputs.tag }}" | ||
# latest: true | ||
fileName: "*.wasm" | ||
out-file-path: "./.github/scripts/IBC-Integration/artifacts/archway" | ||
|
||
- name: Download xcall-multi Javascore Contracts | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: "icon-project/xCall" | ||
tag: "${{ steps.xcall_tag.outputs.tag }}" | ||
# latest: true | ||
fileName: "*.jar" | ||
out-file-path: "./.github/scripts/IBC-Integration/artifacts/icon" | ||
|
||
- name: Download xCall Cosmwasm Contracts | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: "icon-project/xCall" | ||
tag: "${{ steps.xcall_tag.outputs.tag }}" | ||
# latest: true | ||
fileName: "*.wasm" | ||
out-file-path: "./.github/scripts/IBC-Integration/artifacts/archway" | ||
|
||
- name: List Download Files | ||
run: | | ||
./gradlew clean build | ||
./gradlew optimizedJar | ||
ls -l ${GITHUB_WORKSPACE}/.github/scripts/IBC-Integration/artifacts/icon | ||
ls -l ${GITHUB_WORKSPACE}/.github/scripts/IBC-Integration/artifacts/archway | ||
echo $GITHUB_WORKSPACE | ||
echo "${GITHUB_REF##*/}" | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v5 | ||
|
@@ -84,6 +123,8 @@ jobs: | |
|
||
- name: start relay | ||
working-directory: .github/scripts | ||
run: bash ./start_relay.sh | ||
run: | | ||
git status | ||
bash ./start_relay.sh | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.