From 3244925c669bc18426634a64158fb8f6b66d1dad Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 7 Sep 2021 15:49:55 +0200 Subject: [PATCH] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 43 ++++++++----------------------------- 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 2a2260b..09e93cc 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -9,7 +9,11 @@ on: jobs: build-ubuntu: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, ubuntu-18.04] steps: - name: Install dependencies @@ -116,40 +120,11 @@ jobs: build-macos: - runs-on: macOS-latest - - 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 - - build-macos-11: + runs-on: ${{ matrix.os }} - runs-on: macos-11 + strategy: + matrix: + os: [macos-latest, macos-11] steps: - name: Checkout repository