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:
parent
2e77faa80c
commit
7f3ba8e39f
1 changed files with 29 additions and 0 deletions
29
.github/workflows/build.yml
vendored
Normal file
29
.github/workflows/build.yml
vendored
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue