Skip to content

Commit 245d2fc

Browse files
Farhad-Shabanidzmitry-lahodaromac
authored
f32/f64/usize in cosmwasm(and other no f32/f64 envs) reproduction and fixes (#894)
* fixed f64/f32 validation in wasm * what to do with serde json? main one is float, fork from cw is std, my fork pr not merged for no std * apply some adjustments + update cargo.lock for cw-check * deps: bump serde-json-wasm to v1.0.0 * chore: add unclog * ci: add cw-check * fix: remove cachix * fix: not needed to install/cache Rust in CI * imp: run CI only on releases and main branch * nit: on pull_request * nit: max_history_size as u64 * test: calculate_block_delay * nit: remove u64::max * Apply suggestions from code review Co-authored-by: Romain Ruetschi <[email protected]> Signed-off-by: Farhad Shabani <[email protected]> --------- Signed-off-by: Farhad Shabani <[email protected]> Co-authored-by: dzmitry-lahoda <[email protected]> Co-authored-by: Romain Ruetschi <[email protected]>
1 parent a2efb0e commit 245d2fc

File tree

26 files changed

+1737
-72
lines changed

26 files changed

+1737
-72
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- Fix compilation issue with Wasm envs because of floats
2+
- Use `serde-json-wasm` dependency instead of `serde-json` for no-floats support
3+
- Add CI test to include CosmWasm compilation check
4+
([/#850](https://github.com/cosmos/ibc-rs/issues/850))

.github/workflows/cw-check.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CosmWasm Compilation Check
2+
on:
3+
pull_request:
4+
paths:
5+
- .github/workflows/cw-check.yml
6+
- ci/cw-check/**
7+
8+
on:
9+
push:
10+
tags:
11+
- v[0-9]+.*
12+
branches:
13+
- 'release/*'
14+
- main
15+
paths:
16+
- .github/workflows/cw-check.yml
17+
- Cargo.toml
18+
- Cargo.lock
19+
- ci/cw-check/**
20+
- crates/**
21+
22+
jobs:
23+
cw-check:
24+
runs-on: ubuntu-20.04
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Install Nix
29+
uses: cachix/install-nix-action@v22
30+
with:
31+
nix_path: nixpkgs=channel:nixos-unstable
32+
extra_nix_config: |
33+
experimental-features = nix-command flakes
34+
35+
- name: Run cw-check
36+
run: |
37+
cd ci/cw-check
38+
nix-shell --run "cw-check"

.github/workflows/no-std.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on:
55
- .github/workflows/no-std.yml
66
- Cargo.toml
77
- Cargo.lock
8-
- ci/**
8+
- ci/no-std-check/**
99
- crates/**
1010
push:
1111
branches: main
1212
paths:
1313
- .github/workflows/no-std.yml
1414
- Cargo.toml
1515
- Cargo.lock
16-
- ci/**
16+
- ci/no-std-check/**
1717
- crates/**
1818

1919
jobs:

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ members = [
99
]
1010

1111
exclude = [
12+
"ci/cw-check",
1213
"ci/no-std-check",
1314
]

0 commit comments

Comments
 (0)