From 7418e93cd0341e21d3c3599c20be1ed02a64e7a9 Mon Sep 17 00:00:00 2001 From: uranuspucksaxophone <84784521+uranuspucksaxophone@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:22:03 +0200 Subject: [PATCH] Fix CI/CD --- .github/workflows/build.yml | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 455fe748..7cab8d82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,15 +87,20 @@ jobs: run: | cd build ninja - - - name: Prepare artifact - run: mv bin/Cemu_release bin/Cemu - - name: Upload artifact + - name: Upload artifact (release) + if: ${{ inputs.deploymode == 'release' }} uses: actions/upload-artifact@v3 with: - name: cemu-bin-linux-x64 - path: ./bin/Cemu + name: cemu-bin-linux-x64-release + path: ./Cemu_release + + - name: Upload artifact (debug) + if: ${{ inputs.deploymode != 'release' }} + uses: actions/upload-artifact@v3 + with: + name: cemu-bin-linux-x64-debug + path: ./Cemu_debug build-windows: runs-on: windows-2022 @@ -192,12 +197,17 @@ jobs: run: | cd build cmake --build . --config ${{ env.BUILD_MODE }} -j 2 - - - name: Prepare artifact - run: Rename-Item bin/Cemu_release.exe Cemu.exe - - name: Upload artifact + - name: Upload artifact (release) + if: ${{ inputs.deploymode == 'release' }} uses: actions/upload-artifact@v3 with: - name: cemu-bin-windows-x64 - path: ./bin/Cemu.exe + name: cemu-bin-windows-x64-release + path: ./Cemu_release + + - name: Upload artifact (debug) + if: ${{ inputs.deploymode != 'release' }} + uses: actions/upload-artifact@v3 + with: + name: cemu-bin-windows-x64-debug + path: ./Cemu_debug