diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bdfbf48 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + pull_request: + schedule: + - cron: '0 0 1 * *' + +jobs: + Linux: + name: Linux + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-20.04] + cxx: [g++, clang++] + fail-fast: false + env: + CXX: ${{ matrix.cxx }} + steps: + - uses: actions/checkout@v2 + - name: Before script + run: | + sudo apt-get -yqq update + sudo apt-get -yqq install cppcheck + $CXX --version + - name: Script + run: | + $CXX -Wall -g -fsanitize=address tables.cpp -o tables + ./tables + $CXX -Wall -g -fsanitize=address graphs.cpp -o graphs + ./graphs + - name: Cppcheck + run: cppcheck --enable=all . + diff --git a/README.md b/README.md index 0f71877..6a4f928 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.com/tdulcet/Tables-and-Graphs.svg?branch=master)](https://travis-ci.com/tdulcet/Tables-and-Graphs) +[![Actions Status](https://github.com/tdulcet/Tables-and-Graphs/workflows/CI/badge.svg?branch=master)](https://github.com/tdulcet/Tables-and-Graphs/actions) # Tables and Graphs