From 07867727d36647fda4ffe1650d0e37dc2f2f4b5d Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Tue, 9 Feb 2021 14:57:30 +0900 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..99919edb5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: ci + +on: [push, pull_request] + +jobs: + build: + name: ${{ matrix.name }} + + strategy: + fail-fast: true + matrix: + name: + - Ubuntu 18.04 GCC + include: + - name: Ubuntu 18.04 GCC + os: ubuntu-18.04 + compiler: gcc + cpp-compiler: g++ + build-dir: build + build-src-dir: .. + + runs-on: ${{ matrix.os }} + + steps: + - name: Install packages (Ubuntu) + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install libdb++-dev libboost-all-dev libevent-dev ${{ matrix.packages }} + - name: Checkout + uses: actions/checkout@v2 + + - name: Generate project files + run: | + ./autogen.sh + ./configure --disable-wallet + + - name: Compile source code + run: | + make -j2