* Fix formatting in CMakeLists * Add SYNERGY_NO_LEGACY environment flag * Add build script for Windows * Find_package for OpenSSL * Move build scrits to scripts folder * Add macOS and Linux build scripts * Add environment variable * Compile core with static openssl * Default builds to Release * Streamline OpenSSL dependancies * Remove openssl from repo * Change actions to test actions * Add zip creation to build scripts * Re-add original tests * Add action value output * Build per platform on release * Fix path for core build * Temporarily keep artifacts * Set execute flag * Zip before archiving * Static build only for windows * Remove -m flag from zip * Change zip to tar * Fix workflow name * Add hints to openssl on mac * Fix zip files * Fix verbose flag on tar * Remove path on download artifacts * Try an array of build targets * Extract action binaries * Install full openssl * Add 32bit openssl * Modify installer to use the openssl.exe from ext * Install OpenSSL full for windows release build * Add openssl installation during windows CI * Modify changelog * Add enhancments section * Remove bottom line in changelog
77 lines
2.2 KiB
YAML
77 lines
2.2 KiB
YAML
name: Windows
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-arch64:
|
|
runs-on: windows-2019
|
|
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
QT_BASE_DIR: ${{ github.workspace }}\deps\Qt
|
|
BONJOUR_BASE_DIR: ${{ github.workspace }}\deps\bonjour
|
|
QT_VERSION: 5.12.6
|
|
QT_BASE_URL: http://qt.mirror.constant.com/
|
|
BONJOUR_SDK_HOME: ${{ github.workspace }}\deps\bonjour\BonjourSDK
|
|
CMAKE_PREFIX_PATH: ${{ github.workspace }}\deps\Qt\5.12.6\msvc2017_64\
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Cache Qt
|
|
id: cache-qt
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ${{ env.QT_BASE_DIR }}
|
|
key: ${{ runner.os }}-Qt_${{ env.QT_VERSION }}
|
|
|
|
- name: Install Qt
|
|
if: steps.cache-qt.outputs.cache-hit != 'true'
|
|
run: |
|
|
pip install aqtinstall
|
|
python -m aqt install --outputdir $env:QT_BASE_DIR --base $env:QT_BASE_URL $env:QT_VERSION windows desktop win64_msvc2017_64
|
|
cd $env:QT_BASE_DIR\$env:QT_VERSION\msvc2017_64
|
|
dir
|
|
|
|
- name: Cache Bonjour
|
|
id: cache-bonjour
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ${{ env.BONJOUR_BASE_DIR }}
|
|
key: ${{ runner.os }}-Bonjour
|
|
|
|
- name: Install Bonjour SDK
|
|
if: steps.cache-bonjour.outputs.cache-hit != 'true'
|
|
run: |
|
|
New-Item -Force -ItemType Directory -Path ".\deps\bonjour"
|
|
$client = new-object System.Net.WebClient
|
|
$client.DownloadFile("https://binaries.symless.com/bonjour/BonjourSDK.zip",".\bonjoursdk.zip")
|
|
[System.IO.Compression.ZipFile]::ExtractToDirectory(".\bonjoursdk.zip", $env:BONJOUR_BASE_DIR)
|
|
|
|
- name: Install OpenSSL (full)
|
|
run: choco install openssl --no-progress
|
|
|
|
- name: Add msbuild to PATH
|
|
uses: microsoft/setup-msbuild@v1.0.2
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
. ./version
|
|
msbuild synergy-core.sln /p:Configuration=Release
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: windows-binaries
|
|
path: build/bin/Release
|
|
retention-days: 1
|
|
|
|
- name: Run unit test
|
|
run: .\build\bin\Release\unittests.exe
|