mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
CI: added Visual Studio 2022 build
This commit is contained in:
parent
816a29c5ab
commit
3bc03e4801
1 changed files with 12 additions and 9 deletions
21
.github/workflows/c-cpp.yml
vendored
21
.github/workflows/c-cpp.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue