From 77eb764ce9af03557efe86e75a7b4377ce99ac2c Mon Sep 17 00:00:00 2001 From: SinghRajenM Date: Sat, 2 Nov 2024 13:33:24 +0530 Subject: [PATCH] Try similifying consolidated artfact upload --- .github/workflows/ci_build.yml | 55 +++++++--------------------------- 1 file changed, 10 insertions(+), 45 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 0a8674b..e25dcf4 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -9,6 +9,7 @@ on: env: BUILD_DIR: src\Build\Bin MSBUILD_TOOLSET: v143 + ARTIFACT_PREFIX: NppJSONViewer_ jobs: build: @@ -39,14 +40,14 @@ jobs: - name: Archive binaries artifacts uses: actions/upload-artifact@v4 with: - name: NppJSONViewer_${{ matrix.build_platform}}_${{ matrix.build_configuration}} + name: ${{ matrix.ARTIFACT_PREFIX}}${{ matrix.build_platform}}_${{ matrix.build_configuration}} path: ${{ env.BUILD_DIR }}\${{ matrix.build_configuration}}\${{ matrix.build_platform}}\NPPJSONViewer.dll # Step 5: Upload build pdb artifacts - name: Archive symbols artifacts uses: actions/upload-artifact@v4 with: - name: NppJSONViewer_${{ matrix.build_platform}}_${{ matrix.build_configuration}}_pdb + name: ${{ matrix.ARTIFACT_PREFIX}}${{ matrix.build_platform}}_${{ matrix.build_configuration}}_pdb path: ${{ env.BUILD_DIR }}\${{ matrix.build_configuration}}\${{ matrix.build_platform}}\NPPJSONViewer.pdb # Step 6: Run unit tests for x86 and x64 @@ -64,52 +65,16 @@ jobs: fail-fast: true steps: - # Step 8: Download all artifacts from all build jobs - - name: Download Release Win32 binaries and PDBs + # Step 7: Download all artifacts from the build job + - name: Download all artifacts uses: actions/download-artifact@v4 with: - path: all_artifacts/Release/win32 - pattern: NppJSONViewer_Win32_Rel* - merge-multiple: true + pattern: ${{ matrix.ARTIFACT_PREFIX}}* + path: all_artifacts\ - - name: Download Debug Win32 binaries and PDBs - uses: actions/download-artifact@v4 - with: - path: all_artifacts/Debug/win32 - pattern: NppJSONViewer_Win32_Deb* - merge-multiple: true - - - name: Download Release x64 binaries and PDBs - uses: actions/download-artifact@v4 - with: - path: all_artifacts/Release/x64 - pattern: NppJSONViewer_x64_Rel* - merge-multiple: true - - - name: Download Debug x64 binaries and PDBs - uses: actions/download-artifact@v4 - with: - path: all_artifacts/Debug/x64 - pattern: NppJSONViewer_x64_Deb* - merge-multiple: true - - - name: Download Release ARM64 binaries and PDBs - uses: actions/download-artifact@v4 - with: - path: all_artifacts/Release/ARM64 - pattern: NppJSONViewer_ARM64_Rel* - merge-multiple: true - - - name: Download Debug ARM64 binaries and PDBs - uses: actions/download-artifact@v4 - with: - path: all_artifacts/Debug/ARM64 - pattern: NppJSONViewer_ARM64_Deb* - merge-multiple: true - - # Step 9: Upload full artifact - - name: Upload full artifacts + # Step 8: Upload consolidated artifacts as a single artifact + - name: Upload full artifact uses: actions/upload-artifact@v4 with: - name: NppJSONViewer_ALL + name: ${{ matrix.ARTIFACT_PREFIX}}_ALL path: all_artifacts\**