From bb40b51f3a8d65a918503f869b10afcfa2a498cb Mon Sep 17 00:00:00 2001 From: Jun Jiang Date: Sun, 30 Jun 2024 02:23:09 +0800 Subject: [PATCH] attempt to fix GHA --- .github/actions/setup/action.yml | 34 +++++++++++++++----------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 99b4095..fa9033a 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,33 +1,31 @@ name: Setup environment -inputs: - cache: - description: Enable caching - default: "true" - node: - description: The Node.js version to install - required: true - solana: - description: The Solana version to install - runs: using: "composite" steps: - - name: Setup pnpm - uses: pnpm/action-setup@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.78.0 + override: true + components: rustfmt, clippy + - name: Install Protoc + uses: arduino/setup-protoc@v3 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.4.0 + run_install: false - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ inputs.node }} + node-version: 20 cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile shell: bash - name: Install Solana - if: ${{ inputs.solana != '' }} uses: metaplex-foundation/actions/install-solana@v1 with: - version: ${{ inputs.solana }} - cache: ${{ inputs.cache }} - - name: Install Protoc - uses: arduino/setup-protoc@v3 + version: 1.18.15 + cache: "true"