Added GitHub Actions CI.

This commit is contained in:
Teal Dulcet 2021-10-04 07:18:35 -07:00
parent 51fe9094e2
commit e3c5ab871c
2 changed files with 37 additions and 0 deletions

36
.github/workflows/ci.yml vendored Normal file
View File

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

View File

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