Windows CI #3
This file contains 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: Windows CI | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, '[skip windows ci]')" | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup MSBuild | |
uses: microsoft/[email protected] | |
with: | |
msbuild-architecture: x64 | |
- name: Setup Conan | |
uses: turtlebrowser/[email protected] | |
with: | |
version: 1.63.0 | |
- name: Install libraries | |
working-directory: ${{ github.workspace }}/win/build | |
run: | | |
(Get-Content ../conanfile.txt).replace('##', '') | Set-Content ../conanfile.txt | |
conan install .. --build=missing | |
- name: Run CMake | |
working-directory: ${{ github.workspace }}/win/build | |
env: | |
LDFLAGS: /DEBUG:FASTLINK /INCREMENTAL | |
run: | | |
cmake -G "Visual Studio 16 2019" -A "x64" .. | |
- name: Build InspIRCd | |
working-directory: ${{ github.workspace }}/win/build | |
run: | | |
msbuild InspIRCd.sln /M:3 /P:Configuration=Release /P:Platform=x64 /T:ALL_BUILD /VERBOSITY:MINIMAL |