mirror of
https://github.com/anope/anope.git
synced 2026-06-27 20:06:37 +02:00
111f81aa95
Bumps [microsoft/setup-msbuild](https://github.com/microsoft/setup-msbuild) from 1.3 to 2. - [Release notes](https://github.com/microsoft/setup-msbuild/releases) - [Changelog](https://github.com/microsoft/setup-msbuild/blob/main/building-release.md) - [Commits](https://github.com/microsoft/setup-msbuild/compare/v1.3...v2) --- updated-dependencies: - dependency-name: microsoft/setup-msbuild dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Windows CI
|
|
on:
|
|
pull_request:
|
|
push:
|
|
release:
|
|
types:
|
|
- published
|
|
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/setup-msbuild@v2
|
|
|
|
- name: Setup Conan
|
|
uses: turtlebrowser/get-conan@v1.2
|
|
with:
|
|
version: 1.64.0
|
|
|
|
- name: Install libraries
|
|
run: |
|
|
conan install ${{ github.workspace }}\src\win32 --build=missing
|
|
|
|
- name: Run CMake
|
|
run: |
|
|
mkdir ${{ github.workspace }}\build
|
|
cd ${{ github.workspace }}\build
|
|
cmake -A "x64" -D "CMAKE_BUILD_TYPE=${{ github.event_name == 'release' && 'Release' || 'Debug' }}" -G "Visual Studio 16 2019" ..
|
|
|
|
- name: Build Anope
|
|
working-directory: ${{ github.workspace }}\build
|
|
run: |
|
|
msbuild PACKAGE.vcxproj /M:3 /P:Configuration=${{ github.event_name == 'release' && 'Release' || 'Debug' }} /P:Platform=x64 /VERBOSITY:MINIMAL
|
|
|
|
- name: Upload installer
|
|
if: "${{ github.event_name == 'release' }}"
|
|
working-directory: ${{ github.workspace }}\build
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
gh release upload ${{ github.event.release.tag_name }} $(Get-ChildItem anope-*.exe)
|