-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test installing toolchain through an action
- Loading branch information
Showing
1 changed file
with
32 additions
and
25 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 |
---|---|---|
|
@@ -27,43 +27,50 @@ jobs: | |
- name: Install linux dependencies | ||
run: sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler | ||
|
||
- name: Install Rust | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
source "$HOME/.cargo/env" | ||
rustup toolchain install nightly-2022-10-09 | ||
rustup default nightly | ||
rustup target add wasm32-unknown-unknown | ||
export PATH="$HOME/.cargo/bin:$PATH" | ||
- name: Install nightly toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
target: wasm32-unknown-unknown | ||
|
||
# - name: Install Rust | ||
# run: | | ||
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
# source "$HOME/.cargo/env" | ||
# rustup toolchain install nightly-2022-10-09 | ||
# rustup default nightly | ||
# rustup target add wasm32-unknown-unknown --toolchain nightly | ||
# export PATH="$HOME/.cargo/bin:$PATH" | ||
|
||
- name: Check TOML | ||
uses: dprint/[email protected] | ||
# - name: Check TOML | ||
# uses: dprint/[email protected] | ||
|
||
- name: Check Format | ||
run: | | ||
cargo fmt -- --check | ||
# - name: Check Format | ||
# run: | | ||
# cargo fmt -- --check | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
# - name: Rust Cache | ||
# uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Check with Clippy | ||
run: | | ||
cargo clippy --no-deps --all-targets --features runtime-benchmarks --workspace -- --deny warnings | ||
# - name: Check with Clippy | ||
# run: | | ||
# cargo clippy --no-deps --all-targets --features runtime-benchmarks --workspace -- --deny warnings | ||
|
||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: '0.22.0' | ||
args: '--verbose --locked --no-fail-fast --workspace --features runtime-benchmarks --out "Xml"' | ||
|
||
- name: Check Build | ||
run: | | ||
SKIP_WASM_BUILD=1 cargo check --release | ||
# - name: Check Build | ||
# run: | | ||
# SKIP_WASM_BUILD=1 cargo check --release | ||
|
||
- name: Check Build for Benchmarking | ||
run: > | ||
pushd node && | ||
cargo check --features=runtime-benchmarks --release | ||
# - name: Check Build for Benchmarking | ||
# run: > | ||
# pushd node && | ||
# cargo check --features=runtime-benchmarks --release | ||
|
||
- name: Upload coverage report | ||
uses: actions/upload-artifact@v3 | ||
|