diff --git a/.github/workflows/rssguard.yml b/.github/workflows/rssguard.yml index f2c5e6ddc..e8de40e14 100755 --- a/.github/workflows/rssguard.yml +++ b/.github/workflows/rssguard.yml @@ -27,5 +27,8 @@ jobs: with: fetch-depth: 0 submodules: true + - name: Add msbuild to PATH + if: runner.os == 'Windows' + uses: microsoft/setup-msbuild@v1.0.2 - name: Prepare environment and compile application run: ${{ matrix.script_name }} "${{ matrix.os }}" "${{ matrix.use_webengine }}" \ No newline at end of file diff --git a/resources/scripts/github-actions/build-windows.ps1 b/resources/scripts/github-actions/build-windows.ps1 index b262ba5f0..d4a29234a 100755 --- a/resources/scripts/github-actions/build-windows.ps1 +++ b/resources/scripts/github-actions/build-windows.ps1 @@ -2,4 +2,21 @@ $os = $args[0] $webengine = $args[1] echo "We are building for MS Windows." -echo "OS: $os; WebEngine: $webengine" \ No newline at end of file +echo "OS: $os; WebEngine: $webengine" + +$old_pwd = $pwd.Path + +# Get Qt. +$qt_version = "5.15.1" +$qt_stub = "qt-$qt_version-dynamic-msvc2019-x86_64" +$qt_link = "https://github.com/martinrotter/qt5-minimalistic-builds/releases/download/$qt_version/$qt_stub.7z" +$qt_output = "qt.7z" + +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +Invoke-WebRequest -Uri $qt_link -OutFile $qt_output +& ".\resources\scripts\7za\7za.exe" x $qt_output + +$qt_path = (Resolve-Path $qt_stub).Path +$qt_qmake = "$qt_path\bin\qmake.exe" + +$env:PATH = "$qt_path\bin\;" + $env:PATH \ No newline at end of file