sc/.github/workflows/.ubuntu.yml

94 lines
2.2 KiB
YAML
Raw Normal View History

2021-02-08 23:53:06 +03:00
name: x64-ubuntu
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ubuntu:
runs-on: ubuntu-20.04
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
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
2021-04-27 21:13:23 +03:00
make check
ubuntu-32bit-address:
runs-on: ubuntu-latest
2021-04-27 21:17:43 +03:00
name: 32bit-address
2021-04-27 21:13:23 +03:00
steps:
- uses: actions/checkout@v2.1.0
- name: build
env:
2021-04-27 21:17:43 +03:00
CC: gcc
2021-04-27 21:13:23 +03:00
run: |
2021-04-27 21:27:29 +03:00
sudo apt-get install cmake gcc-multilib
2021-04-27 21:13:23 +03:00
mkdir build-debug && cd build-debug
cmake .. -DCMAKE_C_FLAGS=-m32 -DSANITIZER=address
make -j
make check
ubuntu-32bit-undefined:
runs-on: ubuntu-latest
2021-04-27 21:17:43 +03:00
name: 32bit-undefined
2021-04-27 21:13:23 +03:00
steps:
- uses: actions/checkout@v2.1.0
- name: build
env:
2021-04-27 21:17:43 +03:00
CC: gcc
2021-04-27 21:13:23 +03:00
run: |
2021-04-27 21:27:29 +03:00
sudo apt-get install cmake gcc-multilib
2021-04-27 21:13:23 +03:00
mkdir build-debug && cd build-debug
cmake .. -DCMAKE_C_FLAGS=-m32 -DSANITIZER=undefined
make -j
2021-02-24 18:37:21 +03:00
make check