Skip to content

Updated the README. #257

Updated the README.

Updated the README. #257

Workflow file for this run

name: Windows build & tests
on: [push, pull_request, workflow_dispatch]
env:
BUILD_TYPE: Release # Change build type here.
jobs:
build:
runs-on: windows-latest # Change Windows version here.
steps:
- uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.2.4 # Update Qt version here.
aqtversion: '>=0.9.7'
modules: 'qtimageformats'
- name: Install Boost
shell: pwsh
# Change Boost version here (see https://sourceforge.net/projects/boost/files/boost-binaries/).
# See https://github.com/actions/virtual-environments/issues/2667#issue-804635858.
run: |
$Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe"
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\hostedtoolcache\windows\Boost\1.72.0\x86_64"
- name: Build
shell: bash
# Don't forget to update Boost path.
run: |
cd build
cmake .. -DBOOST_ROOT="C:\hostedtoolcache\windows\Boost\1.72.0\x86_64" -A x64
cmake --build . --config $BUILD_TYPE --target Degate
- name: Tests
shell: bash
run: |
cd build
cmake --build . --config $BUILD_TYPE --target DegateTests
cd tests/out/bin/$BUILD_TYPE
$Qt6_DIR/bin/windeployqt.exe ./
./DegateTests.exe