Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: 2.1

orbs:
win: circleci/[email protected]

executors:
golang:
docker:
Expand Down Expand Up @@ -96,6 +99,48 @@ jobs:
- store_artifacts:
path: /tmp/logs

test-windows:
executor:
name: win/default
shell: bash.exe
steps:
- checkout
- run:
name: Install make and mingw
# See https://github.com/docker/containerd-packaging/pull/294 for discussion around mingw version
command: |
set -o errexit
choco install -y make
choco install -y mingw --version 10.2.0 --allow-downgrade
- run:
name: Show Go version information
command: |
go version
make --version
- run:
name: Build
command: |
set -o errexit
LEDGER_ENABLED=false make build
- run:
name: Copy wasmvm.dll to build folder (next to wasmd.exe)
command: |
set -o errexit
/usr/bin/find $HOME/go/pkg/mod/github.com/ -name wasmvm.dll -exec cp "{}" build/ \;
- run:
name: Check libwasmvm-version
command: |
set -o errexit
./build/wasmd.exe version
./build/wasmd.exe query wasm libwasmvm-version
- run:
name: Test
# Copy wasmvm.dll to system dir because we don't know the full path of the test binary
command: |
set -o errexit
/usr/bin/find $HOME/go/pkg/mod/github.com/ -name wasmvm.dll -exec cp "{}" /c/Windows/System32 \;
make test

benchmark:
executor: golang
parallelism: 1
Expand Down Expand Up @@ -241,3 +286,4 @@ workflows:
- simulations:
requires:
- setup-dependencies
- test-windows
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ all: install lint test

build: go.sum
ifeq ($(OS),Windows_NT)
exit 1
go build -mod=readonly $(BUILD_FLAGS) -o build/wasmd.exe ./cmd/wasmd
else
go build -mod=readonly $(BUILD_FLAGS) -o build/wasmd ./cmd/wasmd
endif
Expand Down
2 changes: 2 additions & 0 deletions app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ func setup(t testing.TB, withGenesis bool, invCheckPeriod uint, opts ...wasm.Opt
snapshotDir := filepath.Join(nodeHome, "data", "snapshots")
snapshotDB, err := sdk.NewLevelDB("metadata", snapshotDir)
require.NoError(t, err)
t.Cleanup(func() { snapshotDB.Close() })
snapshotStore, err := snapshots.NewStore(snapshotDB, snapshotDir)
require.NoError(t, err)
baseAppOpts := []func(*bam.BaseApp){bam.SetSnapshotStore(snapshotStore), bam.SetSnapshotKeepRecent(2)}
db := dbm.NewMemDB()
t.Cleanup(func() { db.Close() })
app := NewWasmApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, nodeHome, invCheckPeriod, MakeEncodingConfig(), wasm.EnableAllProposals, EmptyBaseAppOptions{}, opts, baseAppOpts...)
if withGenesis {
return app, NewDefaultGenesisState()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/CosmWasm/wasmd
go 1.19

require (
github.com/CosmWasm/wasmvm v1.1.1
github.com/CosmWasm/wasmvm v1.1.2-0.20221130134100-af1e10ee7bb3
github.com/cosmos/cosmos-proto v1.0.0-alpha8
github.com/cosmos/cosmos-sdk v0.45.11
github.com/cosmos/gogoproto v1.4.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg=
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4=
github.com/CosmWasm/wasmvm v1.1.1 h1:0xtdrmmsP9fibe+x42WcMkp5aQ738BICgcH3FNVLzm4=
github.com/CosmWasm/wasmvm v1.1.1/go.mod h1:ei0xpvomwSdONsxDuONzV7bL1jSET1M8brEx0FCXc+A=
github.com/CosmWasm/wasmvm v1.1.2-0.20221130134100-af1e10ee7bb3 h1:3/j1ovbHGsXsAEO79vLLPkEJCko/U+SQ7r9t0L00Wc0=
github.com/CosmWasm/wasmvm v1.1.2-0.20221130134100-af1e10ee7bb3/go.mod h1:OIhXFPi9BbcEL1USBj4OIrBTtSSds+9eEql56fsdyfE=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo=
github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo=
Expand Down