Skip to content

Commit

Permalink
Try similifying consolidated artfact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SinghRajenM committed Nov 2, 2024
1 parent bbe39a1 commit 77eb764
Showing 1 changed file with 10 additions and 45 deletions.
55 changes: 10 additions & 45 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
BUILD_DIR: src\Build\Bin
MSBUILD_TOOLSET: v143
ARTIFACT_PREFIX: NppJSONViewer_

jobs:
build:
Expand Down Expand Up @@ -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
Expand All @@ -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\**

0 comments on commit 77eb764

Please sign in to comment.