Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Improve Nix sov-celestia-cw build (#141)
Browse files Browse the repository at this point in the history
* Update basecoin hash for Nix sov-celestia-cw build

* Add check for Nix build to CI

* Add instructions to README to update submodule before building with cargo

* Add install-nix and use cachix to cw-check CI job

* Remove Cachix auth token

* Update README.md

Co-authored-by: Rano | Ranadeep <[email protected]>

* setup github token for local git ops

* Update basecoin Sha for sov-celestia wasm generation

---------

Co-authored-by: Rano | Ranadeep <[email protected]>
  • Loading branch information
ljoss17 and rnbguy authored Apr 24, 2024
1 parent 4b236b6 commit 3cce447
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/cw-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ jobs:
with:
submodules: true
token: ${{ secrets.AUTH_TOKEN }}
- uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v14
with:
name: hermes-sdk
extraPullNames: informal-sovereign
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -34,6 +42,12 @@ jobs:
override: true
- name: Cache Cargo registry
uses: Swatinem/rust-cache@v2
- name: Set up Git credentials for private repo
run: |
git config --global --replace-all \
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \
ssh://[email protected]
- name: Build sov-celestia CosmWasm contract
run: make build-sov-celestia-cw

run: |
make build-sov-celestia-cw
nix build .#sov-celestia-cw
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@

This repository contains the IBC implementation for the Sovereign SDK chains using `ibc-rs`.

## Build Guide

Please clone this repository with the included submodules to build using `cargo build`:

```sh
git clone --recurse-submodules <repo-addr>
```

If the repository was cloned without submodules, they can be fetched later:

```sh
git clone <repo-addr>
...
git submodule update --init
```

[//]: # (badges)
[build-image]: https://github.com/informalsystems/sovereign-ibc/workflows/Rust/badge.svg
[build-link]: https://github.com/informalsystems/sovereign-ibc/actions?query=workflow%3ARust
Expand Down
2 changes: 1 addition & 1 deletion nix/sov-celestia-cw.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let
cargoLock = {
lockFile = ../Cargo.lock;
outputHashes = {
"basecoin-0.1.0" = "sha256-Kyb+HUKscz54w7C/SDHBLYF1VsNUrsAiY3PiyZrOu/g=";
"basecoin-0.1.0" = "sha256-7huJeHyrS8GVQqE3nu/VEHxuPWsFqEDo1kabLbenBYA=";
"celestia-proto-0.1.0" = "sha256-iUgrctxdJUyhfrEQ0zoVj5AKIqgj/jQVNli5/K2nxK0=";
"ibc-0.51.0" = "sha256-vKcqk6VqL0D842Z1rMfVTSTmQ9MO2USi9t7ZrwJcxSE=";
"jmt-0.9.0" = "sha256-pq1v6FXS//6Dh+fdysQIVp+RVLHdXrW5aDx3263O1rs=";
Expand Down

0 comments on commit 3cce447

Please sign in to comment.