Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Try building the Windows version in GA (win)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBriza committed Sep 4, 2020
1 parent 1b9a9d4 commit 11a90d9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,33 @@ on:
types: [ created ]

jobs:
windows-qt:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
modules: qtwebengine
- name: Install dependencies
shell: bash
run: |
choco install openssl
- name: Build the application
shell: bash
run: |
mkdir build
cd build
export CMAKE_PREFIX_PATH="$Qt5_Dir/lib/cmake"
export PATH="$Qt5_Dir/bin":"$PATH"
kit=$(ls "/c/Program Files (x86)/Windows Kits/10/bin/"*"/x64/mc.exe" | head -n1 | sed s/mc.exe//)
export PATH="$kit":"$PATH"
export OPENSSL_ROOT_DIR="/c/Program Files/OpenSSL-Win64"
cmake -DCMAKE_BUILD_TYPE=Release -DTOGGL_BUILD_TESTS=OFF -DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" ..
cmake --build . --config Release -- -m
macos-qt:
runs-on: macOS-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ option(INSTALL_HIRES_ICONS "Do not install icons over 512x512" OFF)
option(TOGGL_BUILD_TESTS "Build the Toggl test suite" ON)

set(ENV{OPENSSL_ROOT_DIR} ${OPENSSL_ROOT_DIR})
if (NOT "${OPENSSL_ROOT_DIR}" STREQUAL "")
include_directories("${OPENSSL_ROOT_DIR}/include")
endif()

set(ENV{OPENSSL_ROOT_DIR} ${OPENSSL_ROOT_DIR})
if (NOT "${OPENSSL_ROOT_DIR}" STREQUAL "")
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ include_directories(
${LUA_INCLUDE_DIRS}
${JSONCPP_INCLUDE_DIRS}
${POCO_INCLUDE_DIRS}
$ENV{OPENSSL_ROOT_DIR}/include
"$ENV{OPENSSL_ROOT_DIR}/include"
)

# TogglDesktopLibrary sources
Expand Down

0 comments on commit 11a90d9

Please sign in to comment.