From 33b5b407f06aaed9fe3848ac187ecd2ced036983 Mon Sep 17 00:00:00 2001 From: Dodecahedr0x Date: Fri, 21 Feb 2025 00:07:14 -0700 Subject: [PATCH] Add rust version as input --- action.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/action.yml b/action.yml index f19e239..bba0d21 100644 --- a/action.yml +++ b/action.yml @@ -1,27 +1,31 @@ -name: 'Anchor Test' +name: "Anchor Test" description: 'An "anchor test" action that runs in ~1 minute.' branding: icon: anchor color: blue inputs: node-version: - description: 'Version of node.js to use' + description: "Version of node.js to use" required: false - default: '20.11.0' # LTS + default: "20.11.0" # LTS + rust-version: + description: "Version of rust to use" + required: false + default: "stable" # stable solana-cli-version: - description: 'Version of Solana CLI to use' + description: "Version of Solana CLI to use" required: false - default: '1.17.1' # stable + default: "1.17.1" # stable anchor-version: - description: 'Version of Anchor to use' + description: "Version of Anchor to use" required: false - default: '0.29.0' # latest + default: "0.29.0" # latest features: - description: 'Features to pass to cargo' + description: "Features to pass to cargo" required: false - default: 'default' + default: "default" runs: - using: 'composite' + using: "composite" steps: - uses: metadaoproject/setup-anchor@v2 with: @@ -45,7 +49,7 @@ runs: - name: Install Cargo toolchain uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: ${{ inputs.rust-version }} profile: minimal components: rustc - name: Cache Cargo dependencies @@ -53,4 +57,3 @@ runs: - name: Run tests run: anchor test -- --features ${{ inputs.features }} shell: bash -