Specify compilers explicitly

This commit is contained in:
Arun Prakash Jana 2020-12-17 08:45:41 +05:30
parent 12f3d0af61
commit 18232f993d
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -14,19 +14,14 @@ jobs:
DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get -y install tzdata
apt install -y --no-install-recommends software-properties-common wget gpg-agent shellcheck
apt install -y --no-install-recommends git make pkg-config libncurses-dev libreadline-dev
apt install -y --no-install-recommends gcc gcc-7 gcc-8 gcc-10
apt install -y --no-install-recommends clang clang-6.0 clang-7 clang-8 clang-9 clang-tidy-10
apt install -y --no-install-recommends gcc-7 gcc-8 gcc-9 gcc-10
apt install -y --no-install-recommends clang-6.0 clang-7 clang-8 clang-9 clang-10 clang-tidy-10
- checkout
- run:
command: |
export CFLAGS=-Werror
make clean
echo
echo "########## gcc ##########"
CC=gcc make strip
ls -l nnn
make clean
echo
echo "########## gcc-7 ##########"
CC=gcc-7 make strip
ls -l nnn
@ -37,13 +32,13 @@ jobs:
ls -l nnn
make clean
echo
echo "########## gcc-10 ##########"
CC=gcc-10 make strip
echo "########## gcc-9 ##########"
CC=gcc-9 make strip
ls -l nnn
make clean
echo
echo "########## clang ##########"
CC=clang make strip
echo "########## gcc-10 ##########"
CC=gcc-10 make strip
ls -l nnn
make clean
echo
@ -67,6 +62,11 @@ jobs:
ls -l nnn
make clean
echo
echo "########## clang-10 ##########"
CC=clang-10 make strip
ls -l nnn
make clean
echo
echo "########## clang-tidy-10 ##########"
clang-tidy-10 src/* -- -I/usr/include -I/usr/include/ncursesw
echo "########## shellcheck ##########"