From de5786d8002360c9e243376a1c93bc9d3e9225e7 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 9 Jan 2025 01:59:33 +0530 Subject: [PATCH] setup rust 1.79.0 --- .github/workflows/anchor.yml | 3 +++ .github/workflows/poseidon.yml | 3 +++ .github/workflows/rust.yml | 4 +++- .github/workflows/solana-native.yml | 3 +++ .github/workflows/steel.yml | 3 +++ 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index 68d729115..461dd2dae 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -104,6 +104,9 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - uses: heyAyushh/setup-anchor@v4.9 with: anchor-version: 0.30.1 diff --git a/.github/workflows/poseidon.yml b/.github/workflows/poseidon.yml index befa47718..a523d6ccc 100644 --- a/.github/workflows/poseidon.yml +++ b/.github/workflows/poseidon.yml @@ -104,6 +104,9 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - uses: heyAyushh/setup-anchor@v4.9 with: anchor-version: 0.30.1 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 62a219d39..3251d0ca9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -33,7 +33,9 @@ jobs: # This GitHub Action installs a Rust toolchain using rustup. It is designed for one-line concise usage and good defaults. - name: Install the Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - name: Run tests run: cargo test diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index b1f9d6dbc..3cabf57d7 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -103,6 +103,9 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - name: Use Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/steel.yml b/.github/workflows/steel.yml index 58e7c83a8..61d69e993 100644 --- a/.github/workflows/steel.yml +++ b/.github/workflows/steel.yml @@ -27,6 +27,9 @@ jobs: matrix: ${{ steps.matrix.outputs.matrix }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - uses: dorny/paths-filter@v3 id: changes if: github.event_name == 'pull_request'