Skip to content

Commit

Permalink
fix(ci): PATH on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
CoelacanthusHex committed Dec 13, 2020
1 parent 48373fb commit 8e76458
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/macos-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
brew install ninja pkg-config
- name: build macos
env:
Qt5_DIR: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
Qt6_DIR: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
run: |
cmake . \
-GNinja \
Expand All @@ -67,11 +67,11 @@ jobs:
# tag 打包
- name: package
env:
Qt5_DIR: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
Qt6_DIR: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
run: |
# 拷贝依赖
#mv ${targetName} ${targetName}.app
export PATH=$Qt5_DIR/bin:$PATH
export PATH=$Qt6_DIR/bin:$PATH
macdeployqt ${targetName}.app -qmldir=. -verbose=1 -dmg
- name: Upload artifact
uses: actions/upload-artifact@v2-preview
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ endif()

target_include_directories(lemon PUBLIC ${CMAKE_SOURCE_DIR}/src)

if(WIN32 AND ENABLE_XLS_EXPORT NOT LEMON_QT6)
if(WIN32 AND ENABLE_XLS_EXPORT AND NOT LEMON_QT6)
find_package(${LEMON_QT_LIBNAME} COMPONENTS AxContainer REQUIRED)
list(APPEND LEMON_QT_LIBS ${LEMON_QT_LIBNAME}::AxContainer)
add_definitions(-DENABLE_XLS_EXPORT)
Expand Down
2 changes: 1 addition & 1 deletion makespec/BUILDVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
110
113

0 comments on commit 8e76458

Please sign in to comment.