|
58 | 58 | run: | |
59 | 59 | cd src\Build\Bin\Release\x64 |
60 | 60 | ./UnitTest.exe |
| 61 | +
|
| 62 | + upload-full-artifacts: |
| 63 | + # Trigger this job only after all 'build' jobs are complete |
| 64 | + needs: build |
| 65 | + runs-on: windows-latest |
| 66 | + strategy: |
| 67 | + fail-fast: true |
| 68 | + |
| 69 | + steps: |
| 70 | + - name: Checkout repo |
| 71 | + uses: actions/checkout@v4 |
| 72 | + |
| 73 | + # Step 8: Download all artifacts from all build jobs |
| 74 | + - name: Download Release Win32 DLL |
| 75 | + uses: actions/download-artifact@v4 |
| 76 | + with: |
| 77 | + name: NppJSONViewer_Win32_Release |
| 78 | + path: all_artifacts/Release/win32 |
| 79 | + |
| 80 | + - name: Download Release Win32 PDB |
| 81 | + uses: actions/download-artifact@v4 |
| 82 | + with: |
| 83 | + name: NppJSONViewer_Win32_Release_pdb |
| 84 | + path: all_artifacts/Release/win32 |
| 85 | + |
| 86 | + - name: Download Release x64 DLL |
| 87 | + uses: actions/download-artifact@v4 |
| 88 | + with: |
| 89 | + name: NppJSONViewer_x64_Release |
| 90 | + path: all_artifacts/Release/x64 |
| 91 | + |
| 92 | + - name: Download Release x64 PDB |
| 93 | + uses: actions/download-artifact@v4 |
| 94 | + with: |
| 95 | + name: NppJSONViewer_x64_Release_pdb |
| 96 | + path: all_artifacts/Release/x64 |
| 97 | + |
| 98 | + - name: Download Release ARM64 DLL |
| 99 | + uses: actions/download-artifact@v4 |
| 100 | + with: |
| 101 | + name: NppJSONViewer_ARM64_Release |
| 102 | + path: all_artifacts/Release/ARM64 |
| 103 | + |
| 104 | + - name: Download Release ARM64 PDB |
| 105 | + uses: actions/download-artifact@v4 |
| 106 | + with: |
| 107 | + name: NppJSONViewer_ARM64_Release_pdb |
| 108 | + path: all_artifacts/Release/ARM64 |
| 109 | + |
| 110 | + - name: Download Debug Win32 DLL |
| 111 | + uses: actions/download-artifact@v4 |
| 112 | + with: |
| 113 | + name: NppJSONViewer_Win32_Debug |
| 114 | + path: all_artifacts/Debug/win32 |
| 115 | + |
| 116 | + - name: Download Debug Win32 PDB |
| 117 | + uses: actions/download-artifact@v4 |
| 118 | + with: |
| 119 | + name: NppJSONViewer_Win32_Debug_pdb |
| 120 | + path: all_artifacts/Debug/win32 |
| 121 | + |
| 122 | + - name: Download Debug x64 DLL |
| 123 | + uses: actions/download-artifact@v4 |
| 124 | + with: |
| 125 | + name: NppJSONViewer_x64_Debug |
| 126 | + path: all_artifacts/Debug/x64 |
| 127 | + |
| 128 | + - name: Download Debug x64 PDB |
| 129 | + uses: actions/download-artifact@v4 |
| 130 | + with: |
| 131 | + name: NppJSONViewer_x64_Debug_pdb |
| 132 | + path: all_artifacts/Debug/x64 |
| 133 | + |
| 134 | + - name: Download Debug ARM64 DLL |
| 135 | + uses: actions/download-artifact@v4 |
| 136 | + with: |
| 137 | + name: NppJSONViewer_ARM64_Debug |
| 138 | + path: all_artifacts/Debug/ARM64 |
| 139 | + |
| 140 | + - name: Download Debug ARM64 PDB |
| 141 | + uses: actions/download-artifact@v4 |
| 142 | + with: |
| 143 | + name: NppJSONViewer_ARM64_Debug_pdb |
| 144 | + path: all_artifacts/Debug/ARM64 |
| 145 | + |
| 146 | + # Step 9: Archive the consolidated artifacts as a single artifact or zip file |
| 147 | + - name: Zip all artifacts |
| 148 | + run: | |
| 149 | + # Zip the contents directly without including the parent folder |
| 150 | + powershell Compress-Archive -Path all_artifacts\* -DestinationPath NppJSONViewer_full.zip |
| 151 | +
|
| 152 | + - name: Upload full artifacts |
| 153 | + uses: actions/upload-artifact@v4 |
| 154 | + with: |
| 155 | + name: NppJSONViewer_full |
| 156 | + path: NppJSONViewer_full.zip |
0 commit comments