CI: added Visual Studio 2022 build

This commit is contained in:
SChernykh 2021-10-16 14:29:59 +02:00
parent 816a29c5ab
commit 3bc03e4801

View file

@ -96,7 +96,13 @@ jobs:
build-windows-msbuild: build-windows-msbuild:
runs-on: windows-latest runs-on: windows-${{ matrix.config.os }}
strategy:
matrix:
config:
- {vs: Visual Studio 16 2019, os: 2019, msbuild: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin\\amd64\\"}
- {vs: Visual Studio 17 2022, os: 2022, msbuild: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Msbuild\\Current\\Bin\\amd64\\"}
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -107,23 +113,20 @@ jobs:
- name: Setup cmake - name: Setup cmake
uses: lukka/get-cmake@latest uses: lukka/get-cmake@latest
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.3
- name: Build p2pool - name: Build p2pool
run: | run: |
mkdir build mkdir build
cd build cd build
cmake .. -G "Visual Studio 16 2019" cmake .. -G "${{ matrix.config.vs }}"
msbuild /m /p:Configuration=Release p2pool.vcxproj & "${{ matrix.config.msbuild }}msbuild" /m /p:Configuration=Release p2pool.vcxproj
- name: Build tests - name: Build tests
run: | run: |
cd tests cd tests
mkdir build mkdir build
cd build cd build
cmake .. -G "Visual Studio 16 2019" cmake .. -G "${{ matrix.config.vs }}"
msbuild /m /p:Configuration=Release p2pool_tests.vcxproj & "${{ matrix.config.msbuild }}msbuild" /m /p:Configuration=Release p2pool_tests.vcxproj
- name: Run tests - name: Run tests
run: | run: |
@ -133,7 +136,7 @@ jobs:
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: p2pool-msbuild.exe name: p2pool-msbuild-${{ matrix.config.os }}.exe
path: build/Release/p2pool.exe path: build/Release/p2pool.exe
build-macos: build-macos: