Browse Source

fix: Steel CLI requires solana keypair at root (#331)

* create solana keygen at root for steel
* --force for the next solana version
* biome changes for poseidon
* check hello-solana steel version mismatch, pin dependencies
Ayush 10 months ago
parent
commit
2c4bc257c8

+ 4 - 2
.github/workflows/steel.yml

@@ -253,7 +253,7 @@ jobs:
           chmod +x build_and_test.sh
 
       - name: Setup Solana stable
-        uses: heyAyushh/setup-solana@v5.4
+        uses: heyAyushh/setup-solana@v5.5
         with:
           solana-cli-version: stable
       - name: Build and Test with Stable
@@ -264,10 +264,11 @@ jobs:
           source build_and_test.sh
           solana -V
           rustc -V
+          solana-keygen new --no-bip39-passphrase
           process_projects "stable"
           sccache --show-stats
       - name: Setup Solana 1.18.17
-        uses: heyAyushh/setup-solana@v5.4
+        uses: heyAyushh/setup-solana@v5.5
         with:
           solana-cli-version: 1.18.17
       - name: Build and Test with 1.18.17
@@ -278,6 +279,7 @@ jobs:
           source build_and_test.sh
           solana -V
           rustc -V
+          solana-keygen new --no-bip39-passphrase --force
           process_projects "1.18.17"
           sccache --show-stats
 

+ 2 - 2
basics/hello-solana/steel/Cargo.toml

@@ -15,7 +15,7 @@ keywords = ["solana"]
 [workspace.dependencies]
 bytemuck = "1.14"
 num_enum = "0.7"
-solana-program = "1.18"
-steel = "2.0"
+solana-program = "=2.0.13"
+steel = "=2.1.1"
 thiserror = "1.0"
 solana-sdk = "1.18"

+ 2 - 2
basics/hello-solana/steel/program/Cargo.toml

@@ -7,5 +7,5 @@ edition = "2021"
 crate-type = ["cdylib", "lib"]
 
 [dependencies]
-solana-program = "2.0.13"
-steel = "1.3.0"
+solana-program = "=2.0.13"
+steel = "=2.1.1"

+ 2 - 1
biome.json

@@ -10,7 +10,8 @@
       "suspicious": {
         "noExplicitAny": "off",
         "noAssignInExpressions": "warn",
-        "noExportsInTest": "warn"
+        "noExportsInTest": "warn",
+        "noShadowRestrictedNames": "off"
       },
       "style": {
         "noParameterAssign": "warn",