From efab93addd6f6576982cc6779ee2d590fa2bd276 Mon Sep 17 00:00:00 2001 From: Jun Jiang Date: Sat, 5 Oct 2024 03:49:40 +0800 Subject: [PATCH] add shank --- .github/actions/setup/action.yml | 8 ++++++++ .github/workflows/main.yml | 1 + Cargo.toml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 9c6c869..086c61e 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -19,6 +19,9 @@ inputs: solana: description: Install Solana if `true`. Defaults to `false`. required: false + shank: + description: Install Shank if `true`. Defaults to `false`. + required: false runs: using: 'composite' @@ -60,6 +63,11 @@ runs: with: version: ${{ env.SOLANA_VERSION }} cache: true + - name: Install Shank + if: ${{ inputs.shank == 'true' }} + uses: baptiste0928/cargo-install@v3 + with: + crate: shank-cli - name: Cache Cargo Dependencies if: ${{ inputs.cargo-cache-key && !inputs.cargo-cache-fallback-key }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8a916a..a8d32f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -122,6 +122,7 @@ jobs: with: cargo-cache-key: cargo-programs cargo-cache-local-key: cargo-local + shank: true - name: Generate IDLs run: pnpm generate:idls diff --git a/Cargo.toml b/Cargo.toml index ecb154b..0ef046c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ repository = "https://github.com/dephy-io/dephy-id" license = "Apache-2.0" [workspace.metadata.cli] -solana = "2.0.13" +solana = "1.18.25" # Specify Rust toolchains for rustfmt, clippy, and build. # Any unprovided toolchains default to stable.