Skip to content

install nightly toolchain #5

install nightly toolchain

install nightly toolchain #5

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
Fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install protobuf
run: sudo apt-get install protobuf-compiler
- name: Install nightly toolchain
run: sudo rustup toolchain install nightly-2023-04-01
- name: fmt check
run: cargo +nightly-2023-12-01 fmt --all --check
Release-Build:
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Install protobuf
run: sudo apt-get install protobuf-compiler
- name: Install nightly toolchain
run: sudo rustup toolchain install nightly-2023-04-01
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
Pallet-Tests:

Check failure on line 39 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Install protobuf
run: sudo apt-get install protobuf-compiler
- name: Install nightly toolchain
run: sudo rustup toolchain install nightly-2023-04-01
- uses: actions/checkout@v4
- name: Run Pallet Tests
run: cargo test --features runtime-benchmarks --verbose
Integration-Tests:
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Install protobuf
run: sudo apt-get install protobuf-compiler
- name: Install nightly toolchain
run: sudo rustup toolchain install nightly-2023-04-01
- uses: actions/checkout@v4
- name: STD Build
run: cargo build --release --features std,instant-node
- name: Run Integration Tests
run: cargo test -p integration-tests