Loris Leiva 1 anno fa
parent
commit
f3c3a60680
3 ha cambiato i file con 9 aggiunte e 10 eliminazioni
  1. 6 7
      .github/workflows/main.yml
  2. 1 1
      index.ts
  3. 2 2
      utils/runCommands.ts

+ 6 - 7
.github/workflows/main.yml

@@ -35,17 +35,16 @@ jobs:
     strategy:
       matrix:
         project: ["counter-anchor", "counter-shank"]
-        solana: ["1.18.12"]
-        # solana: ["1.17.24", "1.18.12"]
+        solana: ["1.17.24", "1.18.12"]
         include:
           - anchor: "0.30.0"
             project: "counter-anchor"
             solana: "1.18.12"
-          # - anchor: "0.29.0"
-          #   project: "counter-anchor"
-          #   solana: "1.17.24"
-          # - solana: "1.17.24"
-          #   toolchain: "1.68.0"
+          - anchor: "0.29.0"
+            project: "counter-anchor"
+            solana: "1.17.24"
+          - solana: "1.17.24"
+            toolchain: "1.68.0"
           - solana: "1.18.12"
             toolchain: "1.75.0"
     steps:

+ 1 - 1
index.ts

@@ -75,7 +75,7 @@ import {
     ),
     async () => {
       renderTemplates(ctx);
-      // await patchSolanaDependencies(ctx);
+      await patchSolanaDependencies(ctx);
     }
   );
 

+ 2 - 2
utils/runCommands.ts

@@ -21,8 +21,8 @@ export async function waitForCommand(child: ChildProcess): Promise<number> {
   return new Promise((resolve, reject) => {
     child.on('close', (code) => {
       if (code !== 0) {
-        const message = `$(${child}) exited with code ${code}`;
-        reject(new Error(message));
+        // const message = `$(${child}) exited with code ${code}`;
+        reject(child);
       } else {
         resolve(code);
       }