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.
This commit is contained in:
Alexander Shirokov 2023-07-30 15:30:35 +02:00
parent 2e77faa80c
commit 7f3ba8e39f
No known key found for this signature in database
GPG key ID: 6020E4D7AFA8ECE7

29
.github/workflows/build.yml vendored Normal file
View file

@ -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