From 66b0fa72aa18f596069d63bf2a0280a3356990a1 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 31 Mar 2020 17:07:06 +0200 Subject: [PATCH] Add github actions CI --- .github/workflows/main.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..a1319548e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,48 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ubuntu: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Install deps + run: | + sudo apt install expect gettext libncurses5-dev libpcre2-dev + - name: cmake + run: | + mkdir build && cd build + cmake .. + - name: make + run: | + make + - name: make test + run: | + make test + + macos: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Install deps + run: | + brew install pcre2 + - name: cmake + run: | + mkdir build && cd build + cmake .. + - name: make + run: | + make + - name: make test + run: | + make test