2021-02-08 23:53:06 +03:00
|
|
|
name: x64-ubuntu
|
2020-11-16 03:58:37 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Build on Ubuntu
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
compiler: [ gcc, clang ]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.1.0
|
|
|
|
- name: build
|
|
|
|
env:
|
|
|
|
CC: ${{ matrix.compiler }}
|
|
|
|
run: |
|
2020-12-28 09:36:37 +03:00
|
|
|
sudo apt update
|
2020-11-16 03:58:37 +03:00
|
|
|
sudo apt-get install valgrind cmake
|
|
|
|
mkdir build-debug && cd build-debug
|
|
|
|
cmake .. -DSANITIZER=address
|
|
|
|
make -j
|
|
|
|
make check
|
|
|
|
rm -rf *
|
|
|
|
cmake .. -DSANITIZER=undefined
|
|
|
|
make -j
|
|
|
|
make check
|
|
|
|
rm -rf *
|
|
|
|
cmake ..
|
|
|
|
make -j
|
|
|
|
make valgrind
|
|
|
|
|
|
|
|
ubuntu-gcc-thread:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Thread sanitizer
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.1.0
|
|
|
|
- name: build
|
|
|
|
env:
|
|
|
|
CC: gcc
|
|
|
|
run: |
|
|
|
|
sudo apt-get install cmake
|
|
|
|
mkdir build-debug && cd build-debug
|
|
|
|
cmake .. -DSANITIZER=thread
|
|
|
|
make -j
|
|
|
|
make check
|
2021-02-24 18:37:21 +03:00
|
|
|
ubuntu-clang-tidy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Clang Tidy
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.1.0
|
|
|
|
- name: build
|
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
run: |
|
|
|
|
sudo apt-get install cmake clang-tidy
|
|
|
|
mkdir build-debug && cd build-debug
|
|
|
|
cmake .. -DSC_CLANG_TIDY=1
|
|
|
|
make -j
|
|
|
|
make check
|