Update build-windows.yml #2
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 Windows - OTX Server | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Setup vcpkg | |
| run: | | |
| git clone https://github.com/Microsoft/vcpkg.git | |
| .\vcpkg\bootstrap-vcpkg.bat | |
| echo "VCPKG_ROOT=${{ github.workspace }}\vcpkg" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| .\vcpkg\vcpkg.exe install boost:x64-windows libxml2:x64-windows sqlite3:x64-windows openssl:x64-windows lua:x64-windows mysql-connector-cpp:x64-windows libiconv:x64-windows mpir:x64-windows | |
| - name: Build x64 Release | |
| run: msbuild sources/msvc/TheOTXServer.vcxproj /p:Configuration=Release /p:Platform=x64 |