mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 09:09:18 +01:00
Name output binary Cemu_<CONFIG> and always place it in bin/ (#179)
This commit is contained in:
parent
1373c76eb9
commit
4ed18a65c3
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -87,6 +87,10 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
|
- name: Prepare artifact
|
||||||
|
if: ${{ inputs.deploymode == 'release' }}
|
||||||
|
run: mv bin/Cemu_release bin/Cemu
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: ${{ inputs.deploymode == 'release' }}
|
if: ${{ inputs.deploymode == 'release' }}
|
||||||
@ -189,6 +193,10 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
cmake --build . --config ${{ env.BUILD_MODE }} -j 2
|
cmake --build . --config ${{ env.BUILD_MODE }} -j 2
|
||||||
|
|
||||||
|
- name: Prepare artifact
|
||||||
|
if: ${{ inputs.deploymode == 'release' }}
|
||||||
|
run: Rename-Item bin/Cemu_release.exe Cemu.exe
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: ${{ inputs.deploymode == 'release' }}
|
if: ${{ inputs.deploymode == 'release' }}
|
||||||
|
2
.github/workflows/deploy_experimental.yml
vendored
2
.github/workflows/deploy_experimental.yml
vendored
@ -63,4 +63,4 @@ jobs:
|
|||||||
wget -O ghr.tar.gz https://github.com/tcnksm/ghr/releases/download/v0.15.0/ghr_v0.15.0_linux_amd64.tar.gz
|
wget -O ghr.tar.gz https://github.com/tcnksm/ghr/releases/download/v0.15.0/ghr_v0.15.0_linux_amd64.tar.gz
|
||||||
tar xvzf ghr.tar.gz; rm ghr.tar.gz
|
tar xvzf ghr.tar.gz; rm ghr.tar.gz
|
||||||
echo "[INFO] Release tag: v${{ env.CEMU_VERSION }}"
|
echo "[INFO] Release tag: v${{ env.CEMU_VERSION }}"
|
||||||
ghr_v0.15.0_linux_amd64/ghr -prerelease -t ${{ secrets.GITHUB_TOKEN }} -n "Cemu ${{ env.CEMU_VERSION }} (Experimental)" -b "" "v${{ env.CEMU_VERSION }}" ./upload
|
ghr_v0.15.0_linux_amd64/ghr -prerelease -t ${{ secrets.GITHUB_TOKEN }} -n "Cemu ${{ env.CEMU_VERSION }} (Experimental)" -b "Cemu experimental release - [changelog](https://cemu.info/changelog.html)" "v${{ env.CEMU_VERSION }}" ./upload
|
||||||
|
7
.gitignore
vendored
7
.gitignore
vendored
@ -18,14 +18,15 @@
|
|||||||
build/
|
build/
|
||||||
out/
|
out/
|
||||||
.cache/
|
.cache/
|
||||||
bin/Cemu
|
bin/Cemu_*
|
||||||
|
bin/Cemu_*.exe
|
||||||
|
|
||||||
# Cemu bin files
|
# Cemu bin files
|
||||||
bin/otp.bin
|
bin/otp.bin
|
||||||
bin/seeprom.bin
|
bin/seeprom.bin
|
||||||
bin/log.txt
|
bin/log.txt
|
||||||
bin/Cemu.pdb
|
bin/Cemu_*.pdb
|
||||||
bin/Cemu.ilk
|
bin/Cemu_*.ilk
|
||||||
bin/Cemu.exe.backup
|
bin/Cemu.exe.backup
|
||||||
bin/mlc01/*
|
bin/mlc01/*
|
||||||
bin/settings.xml
|
bin/settings.xml
|
||||||
|
@ -75,8 +75,10 @@ endif()
|
|||||||
set_property(TARGET CemuBin PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
set_property(TARGET CemuBin PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|
||||||
set_target_properties(CemuBin PROPERTIES
|
set_target_properties(CemuBin PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../bin/"
|
# multi-configuration generators will add a config subdirectory to RUNTIME_OUTPUT_DIRECTORY if no generator expression is used
|
||||||
OUTPUT_NAME "Cemu"
|
# to get the same behavior everywhere we append an empty generator expression
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../bin/$<1:>"
|
||||||
|
OUTPUT_NAME "Cemu_$<LOWER_CASE:$<CONFIG>>"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(CemuBin PRIVATE
|
target_link_libraries(CemuBin PRIVATE
|
||||||
|
Loading…
Reference in New Issue
Block a user