From 7f3ba8e39fe762e2fd017fbc94dc3e73b1e04004 Mon Sep 17 00:00:00 2001 From: Alexander Shirokov Date: Sun, 30 Jul 2023 15:30:35 +0200 Subject: [PATCH] ci:add github actions This is a draft version of automated builds based on GitHub Actions. It supports Ubuntu gcc & clang builds. The builds will be triggered automatically after pushing changes to a repo. --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..80c699a5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build +on: [push] + +jobs: + linux: + name: linux:${{ matrix.compiler.name }} + runs-on: ubuntu-latest + strategy: + matrix: + compiler: + - { name: gcc, CC: gcc, CXX: g++ } + - { name: clang, CC: clang, CXX: clang++ } + + steps: + - name: checkout + uses: actions/checkout@v3 + + - name: install packages + run: sudo apt-get install -y g++ clang cmake ninja-build libuv1-dev libssl-dev libhwloc-dev + + - name: configure + run: cmake -G Ninja -DCMAKE_BUILD_TYPE=Release . + env: + CC: ${{ matrix.compiler.CC }} + CXX: ${{ matrix.compiler.CXX }} + + - name: build + run: ninja +