update project configs
This commit is contained in:
parent
86c86999d0
commit
a5ddb67940
4 changed files with 131 additions and 81 deletions
90
action.yml
90
action.yml
|
@ -24,20 +24,20 @@ inputs:
|
|||
description: 'Set to true to enable building with Release configuration'
|
||||
required: true
|
||||
|
||||
releasewin2000:
|
||||
description: 'Set to true to enable building with ReleaseWin2000 configuration'
|
||||
releasexp:
|
||||
description: 'Set to true to enable building with ReleaseXP configuration'
|
||||
required: true
|
||||
|
||||
debug:
|
||||
description: 'Set to true to enable building with Debug configuration'
|
||||
required: true
|
||||
|
||||
debuglog:
|
||||
description: 'Set to true to enable building with DebugLog configuration'
|
||||
debuglogxp:
|
||||
description: 'Set to true to enable building with DebugLogXP configuration'
|
||||
required: true
|
||||
|
||||
debuglogmini:
|
||||
description: 'Set to true to enable building with DebugLogMini configuration'
|
||||
debuglogminixp:
|
||||
description: 'Set to true to enable building with DebugLogMiniXP configuration'
|
||||
required: true
|
||||
|
||||
# Outputs are always using Windows directory separator (`\`)
|
||||
|
@ -47,9 +47,9 @@ outputs:
|
|||
description: 'Full path to ddraw.dll built with Release configuration'
|
||||
value: ${{ steps.build-release.outputs.ddraw-dll }}
|
||||
|
||||
releasewin2000:
|
||||
description: 'Full path to ddraw.dll built with ReleaseWin2000 configuration'
|
||||
value: ${{ steps.build-releasewin2000.outputs.ddraw-dll }}
|
||||
releasexp:
|
||||
description: 'Full path to ddraw.dll built with ReleaseXP configuration'
|
||||
value: ${{ steps.build-releasexp.outputs.ddraw-dll }}
|
||||
|
||||
debug:
|
||||
description: 'Full path to ddraw.dll built with Debug configuration'
|
||||
|
@ -58,19 +58,19 @@ outputs:
|
|||
description: 'Full path to ddraw.pdb built with Debug configuration'
|
||||
value: ${{ steps.build-debug.outputs.ddraw-pdb }}
|
||||
|
||||
debuglog:
|
||||
description: 'Full path to ddraw.dll built with DebugLog configuration'
|
||||
value: ${{ steps.build-debuglog.outputs.ddraw-dll }}
|
||||
debuglog-pdb:
|
||||
description: 'Full path to ddraw.pdb built with DebugLog configuration'
|
||||
value: ${{ steps.build-debuglog.outputs.ddraw-pdb }}
|
||||
debuglogxp:
|
||||
description: 'Full path to ddraw.dll built with DebugLogXP configuration'
|
||||
value: ${{ steps.build-debuglogxp.outputs.ddraw-dll }}
|
||||
debuglogxp-pdb:
|
||||
description: 'Full path to ddraw.pdb built with DebugLogXP configuration'
|
||||
value: ${{ steps.build-debuglogxp.outputs.ddraw-pdb }}
|
||||
|
||||
debuglogmini:
|
||||
description: 'Full path to ddraw.dll built with DebugLogMini configuration'
|
||||
value: ${{ steps.build-debuglogmini.outputs.ddraw-dll }}
|
||||
debuglogmini-pdb:
|
||||
description: 'Full path to ddraw.pdb built with DebugLogMini configuration'
|
||||
value: ${{ steps.build-debuglogmini.outputs.ddraw-pdb }}
|
||||
debuglogminixp:
|
||||
description: 'Full path to ddraw.dll built with DebugLogMiniXP configuration'
|
||||
value: ${{ steps.build-debuglogminixp.outputs.ddraw-dll }}
|
||||
debuglogminixp-pdb:
|
||||
description: 'Full path to ddraw.pdb built with DebugLogMiniXP configuration'
|
||||
value: ${{ steps.build-debuglogminixp.outputs.ddraw-pdb }}
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
|
@ -82,8 +82,8 @@ runs:
|
|||
if [[ "${{ runner.os }}" != "Windows" ]]; then
|
||||
echo "[ERROR] This action can only be used on Windows"
|
||||
exit 1
|
||||
elif [[ "${{ inputs.release }}" != "true" ]] && [[ "${{ inputs.releasewin2000 }}" != "true" ]] && [[ "${{ inputs.debug }}" != "true" ]] && [[ "${{ inputs.debuglog }}" != "true" ]] && [[ "${{ inputs.debuglogmini }}" != "true" ]]; then
|
||||
echo "[ERROR] At least one of following inputs must be set to 'true' -- 'release', 'releasewin2000', 'debug', 'debuglog', 'debuglogmini'"
|
||||
elif [[ "${{ inputs.release }}" != "true" ]] && [[ "${{ inputs.releasexp }}" != "true" ]] && [[ "${{ inputs.debug }}" != "true" ]] && [[ "${{ inputs.debuglogxp }}" != "true" ]] && [[ "${{ inputs.debuglogminixp }}" != "true" ]]; then
|
||||
echo "[ERROR] At least one of following inputs must be set to 'true' -- 'release', 'releasexp', 'debug', 'debuglogxp', 'debuglogminixp'"
|
||||
exit 1
|
||||
#
|
||||
elif [[ ! -f "$(cygpath --unix "$GITHUB_ACTION_PATH/cnc-ddraw.sln")" ]]; then
|
||||
|
@ -115,7 +115,7 @@ runs:
|
|||
|
||||
#
|
||||
# echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=Release -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=Release -p:Platform=x86 -p:PlatformToolset=v143
|
||||
#
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/Release/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
|
||||
|
@ -124,17 +124,17 @@ runs:
|
|||
shell: bash
|
||||
|
||||
# Creating empty `PostBuild.cmd` to avoid false-positive build error
|
||||
- name: Build ReleaseWin2000
|
||||
id: build-releasewin2000
|
||||
- name: Build ReleaseXP
|
||||
id: build-releasexp
|
||||
run: |
|
||||
if [[ "${{ inputs.releasewin2000 }}" == "true" ]]; then
|
||||
echo ::group::Build ReleaseWin2000
|
||||
if [[ "${{ inputs.releasexp }}" == "true" ]]; then
|
||||
echo ::group::Build ReleaseXP
|
||||
|
||||
#
|
||||
# echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=ReleaseWin2000 -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=ReleaseXP -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
#
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/ReleaseWin2000/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/ReleaseXP/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
|
@ -150,7 +150,7 @@ runs:
|
|||
|
||||
#
|
||||
# echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=Debug -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=Debug -p:Platform=x86 -p:PlatformToolset=v143
|
||||
#
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/Debug/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-pdb=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/Debug/ddraw.pdb")" >> $GITHUB_OUTPUT
|
||||
|
@ -160,38 +160,38 @@ runs:
|
|||
shell: bash
|
||||
|
||||
# Creating empty `PostBuild.cmd` to avoid false-positive build error
|
||||
- name: Build DebugLog
|
||||
id: build-debuglog
|
||||
- name: Build DebugLogXP
|
||||
id: build-debuglogxp
|
||||
run: |
|
||||
:
|
||||
if [[ "${{ inputs.debuglog }}" == "true" ]]; then
|
||||
echo "::group::Build DebugLog"
|
||||
if [[ "${{ inputs.debuglogxp }}" == "true" ]]; then
|
||||
echo "::group::Build DebugLogXP"
|
||||
|
||||
#
|
||||
# echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=DebugLog -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=DebugLogXP -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
#
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLog/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-pdb=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLog/ddraw.pdb")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLogXP/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-pdb=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLogXP/ddraw.pdb")" >> $GITHUB_OUTPUT
|
||||
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
# Creating empty `PostBuild.cmd` to avoid false-positive build error
|
||||
- name: Build DebugLogMini
|
||||
id: build-debuglogmini
|
||||
- name: Build DebugLogMiniXP
|
||||
id: build-debuglogminixp
|
||||
run: |
|
||||
:
|
||||
if [[ "${{ inputs.debuglogmini }}" == "true" ]]; then
|
||||
echo "::group::Build DebugLogMini"
|
||||
if [[ "${{ inputs.debuglogminixp }}" == "true" ]]; then
|
||||
echo "::group::Build DebugLogMiniXP"
|
||||
|
||||
#
|
||||
# echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=DebugLogMini -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/cnc-ddraw.sln" -p:Configuration=DebugLogMiniXP -p:Platform=x86 -p:PlatformToolset=v141_xp
|
||||
#
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLogMini/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-pdb=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLogMini/ddraw.pdb")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLogMiniXP/ddraw.dll")" >> $GITHUB_OUTPUT
|
||||
echo "ddraw-pdb=$(cygpath --windows "$GITHUB_ACTION_PATH/bin/DebugLogMiniXP/ddraw.pdb")" >> $GITHUB_OUTPUT
|
||||
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue