Skip to content

Commit

Permalink
Test installing toolchain through an action
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Dec 5, 2023
1 parent af7199e commit 9d135b3
Showing 1 changed file with 32 additions and 25 deletions.
57 changes: 32 additions & 25 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-2022-10-09
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/check@v2.2
# - name: Check TOML
# uses: dprint/check@v2.2

- 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/tarpaulin@v0.1
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
Expand Down

0 comments on commit 9d135b3

Please sign in to comment.