test #1681
Workflow file for this run
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: C/C++ CI | |
on: | |
push: | |
paths-ignore: | |
- 'docker-compose/**' | |
- 'docs/**' | |
- 'README.md' | |
pull_request: | |
jobs: | |
build-windows-msbuild: | |
timeout-minutes: 20 | |
runs-on: windows-${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- {vs: Visual Studio 16 2019, os: 2019, vspath: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise", rx: "ON", upnp: "ON"} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup cmake | |
uses: lukka/get-cmake@latest | |
- name: Build p2pool | |
run: | | |
mkdir build | |
cd build | |
cmake .. -G "${{ matrix.config.vs }}" -DWITH_RANDOMX=${{ matrix.config.rx }} -DWITH_UPNP=${{ matrix.config.upnp }} | |
& "${{ matrix.config.vspath }}\\MSBuild\\Current\\Bin\\amd64\\msbuild" -v:m /m /p:Configuration=Release p2pool.vcxproj | |
- name: Run RandomX tests | |
if: matrix.config.rx == 'ON' | |
run: | | |
call "${{ matrix.config.vspath }}\\VC\\Auxiliary\\Build\\vcvarsall.bat" amd64 | |
build/Release/p2pool.exe --test | |
cd build/external/src/RandomX | |
& "${{ matrix.config.vspath }}\\MSBuild\\Current\\Bin\\amd64\\msbuild" -v:m /m /p:Configuration=Release randomx-tests.vcxproj | |
Release/randomx-tests.exe | |
- name: Build tests | |
run: | | |
cd tests | |
mkdir build | |
cd build | |
cmake .. -G "${{ matrix.config.vs }}" | |
& "${{ matrix.config.vspath }}\\MSBuild\\Current\\Bin\\amd64\\msbuild" -v:m /m /p:Configuration=Debug p2pool_tests.vcxproj | |
- name: Run tests | |
run: | | |
cd tests/build/Debug | |
7z x *.gz | |
./p2pool_tests.exe | |
- name: Archive binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: p2pool-vs-${{ matrix.config.os }}-randomx-${{ matrix.config.rx }}-upnp-${{ matrix.config.upnp }}.exe | |
path: build/Release/p2pool.exe |