-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 52af9f0
Showing
1,072 changed files
with
193,594 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[alias] | ||
wasm = "build --release --target wasm32-unknown-unknown" | ||
unit-test = "test --lib" | ||
schema = "run --example schema" | ||
lint = "clippy --all --all-targets -- -D warnings" |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
find ./artifacts -maxdepth 1 -size +810k | while read file; do | ||
echo "$file is too large: $(wc -c "$file" | awk '{print $1}') bytes. Maximum: 810000 bytes." | ||
exit 1 | ||
done | ||
|
||
exit 0 |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Motivation | ||
|
||
State the reason or purpose behind this change. | ||
|
||
# Implementation | ||
|
||
Explain the details of the change. | ||
|
||
# Testing | ||
|
||
Was there any on-chain, or other types, of testing run with this change? | ||
|
||
# Notes | ||
|
||
Is there any other information that is important to know about this pull request? | ||
|
||
# Future work | ||
|
||
Specify any future work needed involving this change. |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release Artifacts | ||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5 | ||
|
||
jobs: | ||
release-artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install latest stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Generate Cargo.lock | ||
run: | | ||
cargo fetch --verbose | ||
- name: Build Artifacts | ||
run: | | ||
docker run --rm -v "$(pwd)":/code \ | ||
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ | ||
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ | ||
cosmwasm/workspace-optimizer:0.12.6 | ||
tar -zcvf cosmwasm-artifacts.tar.gz artifacts | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: cosmwasm-artifacts.tar.gz | ||
body_path: CHANGELOG.md |
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 |
---|---|---|
@@ -0,0 +1,115 @@ | ||
name: Formatting Check & Test | ||
|
||
on: | ||
push: | ||
paths: ["**.*"] | ||
pull_request: | ||
branches: [main, development] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
linting: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.69.0 | ||
components: rustfmt, clippy | ||
profile: minimal | ||
override: true | ||
- run: cargo fetch --verbose | ||
- run: cargo clippy --all --all-targets -- -D warnings | ||
- run: cargo fmt -- --check | ||
|
||
contract-tests: | ||
name: Contract Tests | ||
needs: linting | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.69.0 | ||
profile: minimal | ||
- run: cargo fetch --verbose | ||
- run: cargo build | ||
- run: cargo test --verbose --all --lib | ||
env: | ||
RUST_BACKTRACE: 1 | ||
- run: cargo test -p tests-integration --verbose | ||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
name: Actions - build contracts and upload artifacts | ||
needs: [contract-tests] | ||
steps: | ||
- run: sudo apt install binaryen | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.69.0 | ||
- run: rustup override set 1.69.0 | ||
- run: rustup target add wasm32-unknown-unknown | ||
- uses: actions/checkout@v2 | ||
- name: Build | ||
run: | | ||
chmod +x "${GITHUB_WORKSPACE}/build.sh" | ||
"${GITHUB_WORKSPACE}/build.sh" all | ||
- name: Check contract sizes | ||
run: | | ||
chmod +x "${GITHUB_WORKSPACE}/.github/file-size.sh" | ||
"${GITHUB_WORKSPACE}/.github/file-size.sh" | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: contracts | ||
path: ./artifacts/ | ||
if-no-files-found: error | ||
|
||
# ibc-tests: | ||
# runs-on: ubuntu-latest | ||
# name: Post Build - IBC Tests | ||
# needs: build | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 1 | ||
# - name: Download Contracts | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: contracts | ||
# path: "./ibc-tests/contracts" | ||
# - name: Run IBC Tests | ||
# run: | | ||
# cd ./ibc-tests | ||
# npm i | ||
# npm test | ||
|
||
build-schemas: | ||
runs-on: ubuntu-latest | ||
name: Actions - build schemas | ||
needs: contract-tests | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build Schema | ||
run: | | ||
chmod +x "${GITHUB_WORKSPACE}/build_schema.sh" | ||
"${GITHUB_WORKSPACE}/build_schema.sh" | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: schema | ||
path: ./artifacts/ | ||
if-no-files-found: error |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules/ | ||
artifacts/ | ||
target/ | ||
**/.DS_Store/ | ||
**/.DS_Store | ||
artifacts* | ||
.vscode* | ||
ci-scripts/localrelayer/template/ |
Oops, something went wrong.