Fix shared library build

This commit is contained in:
Hennadii Chernyshchyk
2021-10-05 19:07:12 +03:00
parent 1d49a63827
commit e0bc2a9b9f
5 changed files with 32 additions and 16 deletions
+13 -2
View File
@@ -45,16 +45,27 @@ jobs:
with:
version: ${{ matrix.qt_version }}
- name: Build with CMake
- name: Build with CMake as static
run: |
cmake . -D QHOTKEY_EXAMPLES=ON ${{ matrix.additional_arguments }}
cmake --build .
- name: Build with CMake as shared
run: |
cmake . -D BUILD_SHARED_LIBS=ON -D QHOTKEY_EXAMPLES=ON ${{ matrix.additional_arguments }}
cmake --build .
- name: Setup MSVC environment for QMake
uses: ilammy/msvc-dev-cmd@v1
- name: Build with QMake
- name: Build with QMake as static
working-directory: HotkeyTest
run: |
qmake
${{ matrix.make }}
- name: Build with QMake as shared
working-directory: HotkeyTest
run: |
qmake "DEFINES+=QHOTKEY_SHARED QHOTKEY_LIBRARY"
${{ matrix.make }}