Skip to content

Commit

Permalink
Fix artifact names during deployment (#129)
Browse files Browse the repository at this point in the history
Fix artifact names
  • Loading branch information
ntadej authored May 5, 2024
1 parent adb5665 commit e93abb9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: Windows_${{ matrix.arch }}_${{ matrix.qt_version }}}
name: Windows_${{ matrix.arch }}_${{ matrix.qt_version }}

- name: Release
uses: ncipollo/release-action@v1
Expand Down
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ option(MLN_QT_WITH_CLANG_TIDY "Build QMapLibre with clang-tidy checks enabled" O
if("${QT_VERSION_MAJOR}" STREQUAL "")
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
else()
find_package(Qt${QT_VERSION_MAJOR} NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
find_package(QT NAMES Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED)
endif()
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Gui Network REQUIRED) # main dependencies
if(NOT MLN_QT_WITH_INTERNAL_SQLITE)
Expand All @@ -58,7 +58,12 @@ if(MLN_QT_WITH_WIDGETS)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS OpenGL REQUIRED)
endif()
endif()
message(STATUS "Using Qt${QT_VERSION_MAJOR}")

if("${QT_VERSION}" STREQUAL "")
message(FATAL_ERROR "Qt version unknown")
endif()

message(STATUS "Using Qt${QT_VERSION_MAJOR} (${QT_VERSION})")

# Debugging & ccache on Windows
if(MSVC)
Expand Down Expand Up @@ -128,7 +133,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
else()
set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
endif()
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}_${PROJECT_VERSION}_Qt${QT_VERSION}_${CPACK_SYSTEM_NAME}")
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}_v${PROJECT_VERSION}_Qt${QT_VERSION}_${CPACK_SYSTEM_NAME}")
set(CPACK_SOURCE_GENERATOR TBZ2)
set(CPACK_SOURCE_IGNORE_FILES
"/docs/"
Expand Down

0 comments on commit e93abb9

Please sign in to comment.