From 2f134a369a8089c286054f52217273bb7f7e02c8 Mon Sep 17 00:00:00 2001 From: d0p1 Date: Mon, 17 May 2021 15:55:53 +0200 Subject: [PATCH] ci: add basic github action --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 22 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 00000000..67861332 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-18.04 + strategy: + matrix: + cc: [gcc, clang] + steps: + - uses: actions/checkout@v1 + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install build-essential zlibc libgmp-dev openssl libssl-dev + sudo apt-get install libpth-dev scons + sudo apt-get install clang + - name: Build with ${{ matrix.cc }} + run: CC=${{ matrix.cc }} scons \ No newline at end of file diff --git a/.gitignore b/.gitignore index a6452dfe..f06b6ef6 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,8 @@ .* *~ +!.github + config.h *.log build.conf