Skip to content

Commit

Permalink
adopt toolchain version convention
Browse files Browse the repository at this point in the history
  • Loading branch information
jglynn committed Nov 2, 2023
1 parent 77ce437 commit f7198f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 38 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cosmwasm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-

- name: Install Rust
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@1.69.0
with:
toolchain: 1.69.0
target: wasm32-unknown-unknown
components: clippy

Expand Down
30 changes: 0 additions & 30 deletions README copy.md

This file was deleted.

11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

Rust is commonly used for writing Smart Contracts. [WHY?](https://use.ink/why-rust-for-smart-contracts/)

The follow explores CI pipeline support for Rust projects that use [CosmWasm](https://github.com/CosmWasm/cosmwasm#cosmwasm) and thus compile to Web Assembly (wasm).
The follow project explores CI pipeline support for Rust projects that use [CosmWasm](https://github.com/CosmWasm/cosmwasm#cosmwasm) and compile to Web Assembly (wasm).

## Pipeline Phases

### Caching

Much of the tooling, crates, indexing, etc. for a build can be cached.
Much of the tooling, crates, registry indexing, and build outputs can be cached to save significant time on builds.

The following is reccomened by the [GitHub Cache Action](https://github.com/actions/cache/tree/main#cache-action) for Rust/Cargo projects.
The following is recommended by the [GitHub Cache Action](https://github.com/actions/cache/tree/main#cache-action) for Rust/Cargo projects.

```yml
- name: Cache
Expand All @@ -30,13 +30,12 @@ The following is reccomened by the [GitHub Cache Action](https://github.com/acti
### Install Rust
Using toolchain plugin, install `Rust v1.69` including: `rustc, cargo, rust-std, clippy` and target `wasm32-unknown-unknown`
Using the `rust-toolchain` plugin, install `Rust v1.69.0` including: `rustc, cargo, rust-std, clippy` and target `wasm32-unknown-unknown`

```yml
- name: Install Rust
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@1.69.0
with:
toolchain: 1.69.0
target: wasm32-unknown-unknown
components: clippy
```
Expand Down

0 comments on commit f7198f9

Please sign in to comment.