Loader : Update build script to include new binaries in artifact

This commit is contained in:
patrickvl 2019-02-20 21:55:13 +01:00 committed by RadWolfie
parent c4f9821c6a
commit a8e8f0c071
4 changed files with 27 additions and 3 deletions

View File

@ -40,7 +40,7 @@ on_success:
If ($env:configuration -eq 'Release') {
cd bin\$env:configuration
7z u "$env:configuration.zip" ..\..\..\COPYING ..\..\..\README.md
7z u "$env:configuration.zip" Cxbx.exe glew32.dll subhook.dll SDL2.dll
7z u "$env:configuration.zip" cxbxr.exe cxbxr-ldr.exe cxbxr-emu.dll glew32.dll subhook.dll SDL2.dll
7z u "$env:configuration.zip" cxbxr-debugger.exe capstone.dll cs_x86.dll
Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
}

View File

@ -66,7 +66,9 @@ jobs:
Contents: |
COPYING
README.md
build\bin\$(configuration)\Cxbx.exe
build\bin\$(configuration)\cxbxr.exe
build\bin\$(configuration)\cxbxr-ldr.exe
build\bin\$(configuration)\cxbxr-emu.dll
build\bin\$(configuration)\glew32.dll
build\bin\$(configuration)\subhook.dll
build\bin\$(configuration)\SDL2.dll

View File

@ -55,7 +55,7 @@ jobs:
run: |
robocopy . artifacts COPYING README.md /r:0 /w:0
robocopy build\bin\${{ matrix.configuration }} artifacts `
Cxbx.exe glew32.dll subhook.dll SDL2.dll `
cxbxr.exe cxbxr-ldr.exe cxbxr-emu.dll glew32.dll subhook.dll SDL2.dll `
cxbxr-debugger.exe capstone.dll cs_x86.dll /r:0 /w:0
If ($LastExitCode -le 7) { $LastExitCode = 0 }
- uses: actions/upload-artifact@v1

View File

@ -18,3 +18,25 @@ script:
- if [ $TRAVIS_OS_NAME == 'windows' ]; then
cmake --build . --config $configuration;
fi
# Bug with the Windows builder requires us to not filter secrets
#filter_secrets: false
#before_deploy:
# - mkdir export
# - 7z u export/${configuration} COPYING README.md
# - cd build/win32/${configuration}
# - 7z u ../../../export/${configuration} cxbxr.exe cxbxr-ldr.exe cxbxr-emu.dll glew32.dll subhook.dll SDL2.dll
# - 7z u ../../../export/${configuration} CxbxDebugger.exe capstone.dll cs_x86.dll
# - cd ../../../
#deploy:
# provider: releases
# api_key: $GH_TOKEN
# file: "export/${configuration}.7z"
# skip_cleanup: true
# on:
# # Can disable this to deploy all builds appears as "untagged-buildhash" on GH
# tags: true
# branch: develop
# condition: $configuration = Release