From f69afacdddb1d83e5397f661928d9d2067e0728e Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 20 Apr 2024 06:55:33 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 50 ++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aef68fedc5..f553ba783c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,24 +70,38 @@ jobs: run: | : - mkdir -p cnc-ddraw-release - mkdir -p cnc-ddraw-releasexp - mkdir -p cnc-ddraw-debug - mkdir -p cnc-ddraw-debuglogxp - mkdir -p cnc-ddraw-debuglogminixp - - cp "${{ steps.build-release.outputs.release }}" cnc-ddraw-release - - cp "${{ steps.build-releasexp.outputs.releasexp }}" cnc-ddraw-releasexp - - cp "${{ steps.build-debug.outputs.debug }}" cnc-ddraw-debug - cp "${{ steps.build-debug.outputs.debug-pdb }}" cnc-ddraw-debug - - cp "${{ steps.build-debuglogxp.outputs.debuglogxp }}" cnc-ddraw-debuglogxp - cp "${{ steps.build-debuglogxp.outputs.debuglogxp-pdb }}" cnc-ddraw-debuglogxp - - cp "${{ steps.build-debuglogminixp.outputs.debuglogminixp }}" cnc-ddraw-debuglogminixp - cp "${{ steps.build-debuglogminixp.outputs.debuglogminixp-pdb }}" cnc-ddraw-debuglogminixp + if [[ -f "${{ steps.build-release.outputs.release }}" ]]; then + mkdir -p cnc-ddraw-release + + cp "${{ steps.build-release.outputs.release }}" cnc-ddraw-release + fi + + if [[ -f "${{ steps.build-releasexp.outputs.releasexp }}" ]]; then + mkdir -p cnc-ddraw-releasexp + + cp "${{ steps.build-releasexp.outputs.releasexp }}" cnc-ddraw-releasexp + fi + + if [[ -f "${{ steps.build-debug.outputs.debug }}" ]]; then + mkdir -p cnc-ddraw-debug + + cp "${{ steps.build-debug.outputs.debug }}" cnc-ddraw-debug + cp "${{ steps.build-debug.outputs.debug-pdb }}" cnc-ddraw-debug + fi + + if [[ -f "${{ steps.build-debuglogxp.outputs.debuglogxp }}" ]]; then + mkdir -p cnc-ddraw-debuglogxp + + cp "${{ steps.build-debuglogxp.outputs.debuglogxp }}" cnc-ddraw-debuglogxp + cp "${{ steps.build-debuglogxp.outputs.debuglogxp-pdb }}" cnc-ddraw-debuglogxp + fi + + if [[ -f "${{ steps.build-debuglogminixp.outputs.debuglogminixp }}" ]]; then + mkdir -p cnc-ddraw-debuglogminixp + + cp "${{ steps.build-debuglogminixp.outputs.debuglogminixp }}" cnc-ddraw-debuglogminixp + cp "${{ steps.build-debuglogminixp.outputs.debuglogminixp-pdb }}" cnc-ddraw-debuglogminixp + fi shell: bash