Fixed CI.

This commit is contained in:
Teal Dulcet 2022-07-14 02:18:58 -07:00
parent 0540e54213
commit ec2b79950f
3 changed files with 7 additions and 6 deletions

View File

@ -27,9 +27,9 @@ jobs:
$CXX --version $CXX --version
- name: Script - name: Script
run: | run: |
$CXX -Wall -g -Og -fsanitize=address,undefined tables.cpp -o tables $CXX -std=c++17 -Wall -g -Og -fsanitize=address,undefined tables.cpp -o tables
./tables ./tables
$CXX -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o graphs $CXX -std=c++17 -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o graphs
./graphs ./graphs
- name: Cppcheck - name: Cppcheck
run: cppcheck --enable=all . run: cppcheck --enable=all .

View File

@ -13,12 +13,12 @@ install:
- sudo apt-get -yqq update - sudo apt-get -yqq update
- sudo apt-get -yqq install cppcheck - sudo apt-get -yqq install cppcheck
script: script:
- g++ -Wall -g -Og -fsanitize=address,undefined tables.cpp -o gcc_tables - g++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined tables.cpp -o gcc_tables
- ./gcc_tables - ./gcc_tables
- g++ -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o gcc_graphs - g++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o gcc_graphs
- ./gcc_graphs - ./gcc_graphs
- clang++ -Wall -g -Og -fsanitize=address,undefined,integer tables.cpp -o clang_tables - clang++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined,integer tables.cpp -o clang_tables
- ./clang_tables - ./clang_tables
- clang++ -Wall -g -Og -fsanitize=address,undefined,integer graphs.cpp -o clang_graphs - clang++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined,integer graphs.cpp -o clang_graphs
- ./clang_graphs - ./clang_graphs
- cppcheck --enable=all . - cppcheck --enable=all .

View File

@ -14,6 +14,7 @@
#include <vector> #include <vector>
#include <iterator> #include <iterator>
#include <numeric> #include <numeric>
#include <functional>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <unistd.h> #include <unistd.h>