|  | 
| 50 | 50 | 
 | 
| 51 | 51 |       - name: Strip and prepare binary | 
| 52 | 52 |         run: | | 
| 53 |  | -          strip artifacts/subtree | 
| 54 |  | -          mv artifacts/subtree subtree_linux | 
|  | 53 | +          echo "Checking artifacts directory structure:" | 
|  | 54 | +          find artifacts -type f | 
|  | 55 | +           | 
|  | 56 | +          # Handle both possible output locations | 
|  | 57 | +          if [ -f "artifacts/linux_amd64/subtree" ]; then | 
|  | 58 | +            echo "Found binary at artifacts/linux_amd64/subtree" | 
|  | 59 | +            file artifacts/linux_amd64/subtree | 
|  | 60 | +            strip artifacts/linux_amd64/subtree | 
|  | 61 | +            mv artifacts/linux_amd64/subtree subtree_linux | 
|  | 62 | +          elif [ -f "artifacts/subtree" ]; then | 
|  | 63 | +            echo "Found binary at artifacts/subtree" | 
|  | 64 | +            file artifacts/subtree | 
|  | 65 | +            strip artifacts/subtree | 
|  | 66 | +            mv artifacts/subtree subtree_linux | 
|  | 67 | +          else | 
|  | 68 | +            echo "ERROR: Binary not found in expected locations" | 
|  | 69 | +            exit 1 | 
|  | 70 | +          fi | 
| 55 | 71 |            | 
| 56 | 72 |       - name: Upload AMD64 Artifact | 
| 57 | 73 |         uses: actions/upload-artifact@v4 | 
|  | 
| 83 | 99 | 
 | 
| 84 | 100 |       - name: Strip and prepare binary | 
| 85 | 101 |         run: | | 
| 86 |  | -          aarch64-linux-gnu-strip artifacts/subtree | 
| 87 |  | -          mv artifacts/subtree subtree_linux_aarch64 | 
|  | 102 | +          echo "Checking artifacts directory structure:" | 
|  | 103 | +          find artifacts -type f | 
|  | 104 | +           | 
|  | 105 | +          # Handle both possible output locations   | 
|  | 106 | +          if [ -f "artifacts/linux_arm64/subtree" ]; then | 
|  | 107 | +            echo "Found binary at artifacts/linux_arm64/subtree" | 
|  | 108 | +            file artifacts/linux_arm64/subtree | 
|  | 109 | +            strip artifacts/linux_arm64/subtree | 
|  | 110 | +            mv artifacts/linux_arm64/subtree subtree_linux_aarch64 | 
|  | 111 | +          elif [ -f "artifacts/subtree" ]; then | 
|  | 112 | +            echo "Found binary at artifacts/subtree" | 
|  | 113 | +            file artifacts/subtree | 
|  | 114 | +            strip artifacts/subtree | 
|  | 115 | +            mv artifacts/subtree subtree_linux_aarch64 | 
|  | 116 | +          else | 
|  | 117 | +            echo "ERROR: Binary not found in expected locations" | 
|  | 118 | +            exit 1 | 
|  | 119 | +          fi | 
| 88 | 120 |            | 
| 89 | 121 |       - name: Upload ARM64 Artifact | 
| 90 | 122 |         uses: actions/upload-artifact@v4 | 
|  | 
0 commit comments