-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move utils/quartz-proto to core/quartz-proto Fix Cargo.toml paths Add default working-directory for cosmwasm CI jobs Fix default working-directory Rename .cargo/config -> config.toml Update working-directory Update cosmwasm workflows Update rust.yml paths Add aliases to cargo config.toml Test working-directory Update cosmwasm CI jobs Use --manifest-path Use dtolnay/rust-toolchain action Fix workflow Remove --locked SSH agent SSH agent for schema Remove unused SSH key Exclude cw-tee-mtcs from rust CI jobs Clippy fix cargo fmt Add CONTRIBUTING.md Update README.md
- Loading branch information
Showing
107 changed files
with
420 additions
and
283 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
[net] | ||
git-fetch-with-cli = true | ||
|
||
[alias] | ||
wasm = "build --release --lib --target wasm32-unknown-unknown" | ||
unit-test = "test --lib" | ||
schema = "run --bin schema" |
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,89 @@ | ||
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | ||
|
||
name: Cosmwasm basic | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/Basic.yml | ||
- Cargo.lock | ||
- Cargo.toml | ||
- apps/** | ||
- cosmwasm/** | ||
push: | ||
branches: master | ||
paths: | ||
- .github/workflows/rust.yml | ||
- .gitmodules | ||
- Cargo.lock | ||
- Cargo.toml | ||
- apps/** | ||
- cosmwasm/** | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_PROFILE_DEV_DEBUG: 1 | ||
CARGO_PROFILE_RELEASE_DEBUG: 1 | ||
RUST_BACKTRACE: short | ||
CARGO_NET_RETRY: 10 | ||
RUSTUP_MAX_RETRIES: 10 | ||
CARGO_TERM_COLOR: always | ||
|
||
defaults: | ||
run: | ||
working-directory: apps/mtcs/contracts/cw-tee-mtcs | ||
|
||
jobs: | ||
|
||
test-wasm: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install wasm32-unknown-unknown toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Setup SSH access for private deps | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.MTCS_SSH_KEY }} | ||
- name: Run unit tests (for cw-tee-mtcs) | ||
run: cargo unit-test --locked | ||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
- name: Compile WASM contract | ||
run: cargo wasm --locked | ||
env: | ||
RUSTFLAGS: "-C link-arg=-s" | ||
|
||
schema: | ||
name: Schema | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Setup SSH access for private deps | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.MTCS_SSH_KEY }} | ||
- name: Generate Schema (for cw-tee-mtcs) | ||
run: cargo schema --locked | ||
|
||
- name: Schema Changes | ||
# fails if any changes not committed | ||
run: git diff --exit-code schema |
4 changes: 2 additions & 2 deletions
4
...zone-cw-mvp/.github/workflows/Release.yml → .github/workflows/cosmwasm-release.yml
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: release wasm | ||
name: Cosmwasm release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
types: [ created ] | ||
|
||
jobs: | ||
release: | ||
|
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
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,54 @@ | ||
# Contributing | ||
|
||
Thank you for your interest in contributing! | ||
|
||
All work on the code base should be motivated by a Github | ||
issue. Before opening a new issue, first do a search of open and closed issues | ||
to make sure that yours will not be a duplicate. | ||
If you would like to work on an issue which already exists, please indicate so | ||
by leaving a comment. If what you'd like to work on hasn't already been covered | ||
by an issue, then open a new one to get the process going. | ||
|
||
## Forking | ||
|
||
If you do not have write access to the repository, your contribution should be | ||
made through a fork on Github. Fork the repository, contribute to your fork | ||
(either in the `main` branch of the fork or in a separate branch), and then | ||
make a pull request back upstream. | ||
|
||
When forking, add your fork's URL as a new git remote in your local copy of the | ||
repo. For instance, to create a fork and work on a branch of it: | ||
|
||
- Create the fork on GitHub, using the fork button. | ||
- `cd` to the original clone of the repo on your machine | ||
- `git remote rename origin upstream` | ||
- `git remote add origin [email protected]:<location of fork>` | ||
|
||
Now `origin` refers to your fork and `upstream` refers to the original version. | ||
Now `git push -u origin main` to update the fork, and make pull requests | ||
against the original repo. | ||
|
||
To pull in updates from the origin repo, run `git fetch upstream` followed by | ||
`git rebase upstream/main` (or whatever branch you're working in). | ||
|
||
## Pull Requests | ||
|
||
If you have write access to the repo, you can directly branch off of `main`. | ||
This makes it easier for project maintainers to directly make changes to your | ||
branch should the need arise. | ||
|
||
Branch names should be prefixed with the author's GitHub username followed by | ||
an associated issue number and short description of the feature, eg. | ||
`username/12-feature-x`. | ||
|
||
Pull requests are made against `main` and are squash-merged into main. | ||
|
||
PRs must: | ||
|
||
- make reference to an issue outlining the context (e.g. `Resolves: #12`) | ||
- update any relevant documentation and include tests | ||
|
||
Pull requests should aim to be small and self-contained to facilitate quick | ||
review and merging. Larger change sets should be broken up across multiple PRs. | ||
Commits should be concise but informative, and moderately clean. Commits will be | ||
squashed into a single commit for the PR with all the commit messages. |
Oops, something went wrong.