update the workflow to use the pre-installed Inno Setup and MinGW on … #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up MinGW | |
run: | | |
setx PATH "%PATH%;C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin" | |
- name: Install dependencies with vcpkg | |
run: vcpkg install nlohmann-json curl openssl | |
- name: Configure CMake | |
run: cmake -S . -B build -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake | |
- name: Build with CMake | |
run: cmake --build build --target server client | |
- name: Build installer with Inno Setup | |
run: | | |
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" installer/RemoteDesktopWithEmailServiceInstaller.iss | |
- name: Upload installer artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: RemoteDesktopWithEmailServiceInstaller | |
path: RemoteDesktopWithEmailServiceInstaller.exe |