From 6c51b1f9d06c9518733f66d880f15317921376f1 Mon Sep 17 00:00:00 2001 From: aidan Date: Mon, 13 May 2024 14:53:45 +0200 Subject: [PATCH] ci: Add nightly toolchain --- .github/workflows/ci.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0c423bc11..18aaf5b0f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ jobs: if: failure() run: | echo 'TOML is not formatted correctly' - echo 'Please run `taplo format`' + echo 'Please run taplo format' format: runs-on: ubuntu-latest @@ -40,7 +40,7 @@ jobs: if: failure() run: | echo '.rs files are not formatted correctly' - echo 'Please run `cargo fmt --all`' + echo 'Please run cargo fmt --all' clippy: runs-on: ubuntu-latest @@ -52,7 +52,8 @@ jobs: sudo apt-get install protobuf-compiler - uses: dtolnay/rust-toolchain@stable with: - target: wasm32-unknown-unknown, stable-x86_64-unknown-linux-gnu + toolchain: nightly + target: wasm32-unknown-unknown components: clippy - name: List version run: | @@ -63,7 +64,7 @@ jobs: - name: Cargo clippy failure info if: failure() run: | - echo '`cargo clippy` failed' + echo 'cargo clippy failed' echo 'Please fix the issue generated by clippy' build: @@ -76,7 +77,8 @@ jobs: sudo apt-get install protobuf-compiler - uses: dtolnay/rust-toolchain@stable with: - target: wasm32-unknown-unknown, stable-x86_64-unknown-linux-gnu + toolchain: nightly + target: wasm32-unknown-unknown - name: List version run: cargo --version - name: Build with try-runtime feature @@ -102,7 +104,7 @@ jobs: - name: Release build failed if: failure() run: | - echo '`cargo build --release` failed' + echo 'cargo build --release failed' test: runs-on: ubuntu-latest @@ -114,7 +116,8 @@ jobs: sudo apt-get install protobuf-compiler - uses: dtolnay/rust-toolchain@stable with: - target: wasm32-unknown-unknown, stable-x86_64-unknown-linux-gnu + toolchain: nightly + target: wasm32-unknown-unknown - name: List version run: cargo --version - name: Run tests @@ -122,4 +125,4 @@ jobs: - name: Cargo test fail if: failure() run: | - echo '`cargo test --workspace` failed' + echo 'cargo test --workspace failed'