Update c-cpp.yml

This commit is contained in:
SChernykh 2021-09-07 11:31:24 +02:00
parent ce8ec3860d
commit 333cfbefaf

View file

@ -20,19 +20,22 @@ jobs:
with: with:
submodules: true submodules: true
- name: cmake p2pool - name: Build p2pool
run: mkdir build && cd build && cmake .. run: |
mkdir build
cd build
cmake ..
make -j2
- name: make p2pool - name: Build tests
run: cd build && make -j2 run: |
cd tests
mkdir build
cd build
cmake ..
make -j2
- name: cmake tests - name: Run tests
run: cd tests && mkdir build && cd build && cmake ..
- name: make tests
run: cd tests/build && make -j2
- name: run tests
run: cd tests/build && ./p2pool_tests run: cd tests/build && ./p2pool_tests
build-windows-msys2: build-windows-msys2:
@ -143,3 +146,36 @@ jobs:
run: | run: |
cd tests/build cd tests/build
./p2pool_tests ./p2pool_tests
build-macos-11:
runs-on: macos-11
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake libuv zmq libpgm
- name: Build p2pool
run: |
mkdir build
cd build
cmake ..
make -j3
- name: Build tests
run: |
cd tests
mkdir build
cd build
cmake ..
make -j3
- name: Run tests
run: |
cd tests/build
./p2pool_tests