Skip to content

Commit

Permalink
ci: check download of release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Aug 16, 2023
1 parent 8b397bf commit 31cc271
Showing 1 changed file with 49 additions and 38 deletions.
87 changes: 49 additions & 38 deletions .github/workflows/test-relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Relayer Locally
on:
push:
branches:
- "main"
- "**"

jobs:
relay-local-deployment:
Expand All @@ -21,58 +21,69 @@ jobs:
git submodule update --recursive --remote
# Install and setup go
- name: Set up Go 1.19
uses: actions/setup-go@v2
with:
go-version: 1.19
# - name: Set up Go 1.19
# uses: actions/setup-go@v2
# with:
# go-version: 1.19

# setup gopath
- name: Set PATH
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
shell: bash
# run: |
# 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: 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
# - name: Cache Rust dependencies
# uses: Swatinem/rust-cache@v2

# Build relay
- name: Build relayer
run: make install
# - name: Build relayer
# run: make install

# Install goloop
- name: Install goloop
run: go install github.com/icon-project/goloop/cmd/goloop@latest
# - name: Install goloop
# run: go install github.com/icon-project/goloop/cmd/goloop@latest

# Build archwayd
- name: Build archwayd
working-directory: .github/scripts/archway
run: |
echo $PWD
echo $GITHUB_WORKSPACE
make install
# - name: Build archwayd
# working-directory: .github/scripts/archway
# run: |
# echo $PWD
# echo $GITHUB_WORKSPACE
# make install

# Build comsmwasm
- name: Compile WASM
working-directory: .github/scripts/IBC-Integration
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
# - name: Compile WASM
# working-directory: .github/scripts/IBC-Integration
# 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

# - name: Build javascore
# working-directory: .github/scripts/IBC-Integration/contracts/javascore
# run: |
# ./gradlew clean build
# ./gradlew optimizedJar

- name: Download Contracts
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'icon-project/IBC-Integration'
version: 'tags/v0.1.0-alpha.15'
file: 'ibc-0.1.0-optimized.jar'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build javascore
working-directory: .github/scripts/IBC-Integration/contracts/javascore
run: |
./gradlew clean build
./gradlew optimizedJar
- name: List Download Files
run: ls -l

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
Expand Down

0 comments on commit 31cc271

Please sign in to comment.