mirror of
https://github.com/tdulcet/Table-and-Graph-Libs.git
synced 2025-05-05 21:41:12 +08:00
Added GitHub Actions CI.
This commit is contained in:
parent
51fe9094e2
commit
e3c5ab871c
36
.github/workflows/ci.yml
vendored
Normal file
36
.github/workflows/ci.yml
vendored
Normal 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 .
|
||||
|
@ -1,4 +1,5 @@
|
||||
[](https://travis-ci.com/tdulcet/Tables-and-Graphs)
|
||||
[](https://github.com/tdulcet/Tables-and-Graphs/actions)
|
||||
|
||||
# Tables and Graphs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user