Skip to content

Commit

Permalink
Upgrade rust-1.69 and srtool (#2524)
Browse files Browse the repository at this point in the history
* Upgrade rust-1.69 and srtool

* fix clippy

* skip orml clippy warnings

* fix ci

* update srtool-actions@v0.7.0
  • Loading branch information
zjb0807 authored May 2, 2023
1 parent 7ed348f commit dfbda3a
Show file tree
Hide file tree
Showing 12 changed files with 341 additions and 142 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
default: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
required: false

env:
SUBWASM_VERSION: 0.18.0
SUBWASM_VERSION: 0.19.1
CHAIN: ${{ github.event.inputs.chain }}
SCOPE: ${{ github.event.inputs.scope }}

Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
# Build WASM with Substrate Runtime Tool
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.4.0
uses: chevdor/srtool-actions@v0.7.0
env:
BUILD_OPTS: "--features on-chain-release-build,no-metadata-docs"
with:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
Expand All @@ -49,11 +49,12 @@ jobs:
- name: Install clippy
run: rustup component add clippy
- name: Run mandala-runtime clippy
run: cargo clippy --features with-mandala-runtime -- -D warnings
# TODO: remove it after https://github.com/open-web3-stack/open-runtime-module-library/pull/906
run: cargo clippy --features with-mandala-runtime -- -A clippy::derivable-impls -A clippy::useless-conversion -D warnings
- name: Run karura-runtime clippy
run: cargo clippy --features with-karura-runtime -- -D warnings
run: cargo clippy --features with-karura-runtime -- -A clippy::derivable-impls -A clippy::useless-conversion -D warnings
- name: Run acala-runtime clippy
run: cargo clippy --features with-acala-runtime -- -D warnings
run: cargo clippy --features with-acala-runtime -- -A clippy::derivable-impls -A clippy::useless-conversion -D warnings
- name: Run build benches
run: make build-benches
benchmarking:
Expand All @@ -69,7 +70,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
Expand All @@ -89,7 +90,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
Expand Down Expand Up @@ -117,7 +118,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml.src
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
- name: Check format
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2022-10-30
toolchain: nightly-2023-03-04
components: rustfmt
target: wasm32-unknown-unknown
- name: update tokens
Expand Down
Loading

0 comments on commit dfbda3a

Please sign in to comment.