Skip to content

Commit

Permalink
Fix workflow to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
donarturo11 committed Jul 8, 2024
1 parent e5fee8c commit 25b8604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ jobs:
- name: Get Windows mingw qt5 binary
uses: actions/download-artifact@v3
with:
name: ${{env.pkgname}}-windows-mingw
name: ${{env.pkgname}}-windows-mingw-qt5
path: ${{github.workspace}}/${{env.pkgname}}-windows-mingw-qt5

- if: github.event_name == 'push' # this is a snapshot build. create a release and upload binaries
Expand Down
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ option(FORCE_QT5 "Force qt5 install" OFF)
option(FORCE_QT6 "Force qt6 install" OFF)
option(USE_PORTAUDIOCPP "Build with portaudiocpp" OFF)
option(MINGW_DEPLOY "Deploy MinGW runtime dependencies" OFF)
option(DEPS_DEPLOY "Deploy MinGW runtime dependencies" OFF)

list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
message("CMAKE_MODULE_PATH: ${CMAKE_MODULE_PATH}")
Expand Down Expand Up @@ -142,12 +143,10 @@ install (TARGETS ${PROJECT_NAME}

include(CPackConfig)

if (MINGW)
if (MINGW_DEPLOY)
include(MingwDeploy)
endif()
if (MINGW AND MINGWDEPLOY)
include(MingwDeploy)
endif()
if (WIN32)
if (WIN32 AND DEPS_DEPLOY)
find_file(PORTAUDIO_DLL PATHS ${CMAKE_PREFIX_PATH} NAMES portaudio.dll libportaudio.dll)
find_file(STK_DLL PATHS ${CMAKE_PREFIX_PATH} NAMES stk.dll libstk.dll)
install(FILES ${RTAUDIO_DLL} ${STK_DLL} DESTINATION ${PROJECT_NAME})
Expand Down

0 comments on commit 25b8604

Please sign in to comment.