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 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 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 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 gcc-7 gcc-8 gcc-9 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 clang-6.0 clang-7 clang-8 clang-9 clang-10 clang-tidy-10
- checkout - checkout
- run: - run:
command: | command: |
export CFLAGS=-Werror export CFLAGS=-Werror
make clean make clean
echo echo
echo "########## gcc ##########"
CC=gcc make strip
ls -l nnn
make clean
echo
echo "########## gcc-7 ##########" echo "########## gcc-7 ##########"
CC=gcc-7 make strip CC=gcc-7 make strip
ls -l nnn ls -l nnn
@ -37,13 +32,13 @@ jobs:
ls -l nnn ls -l nnn
make clean make clean
echo echo
echo "########## gcc-10 ##########" echo "########## gcc-9 ##########"
CC=gcc-10 make strip CC=gcc-9 make strip
ls -l nnn ls -l nnn
make clean make clean
echo echo
echo "########## clang ##########" echo "########## gcc-10 ##########"
CC=clang make strip CC=gcc-10 make strip
ls -l nnn ls -l nnn
make clean make clean
echo echo
@ -67,6 +62,11 @@ jobs:
ls -l nnn ls -l nnn
make clean make clean
echo echo
echo "########## clang-10 ##########"
CC=clang-10 make strip
ls -l nnn
make clean
echo
echo "########## clang-tidy-10 ##########" echo "########## clang-tidy-10 ##########"
clang-tidy-10 src/* -- -I/usr/include -I/usr/include/ncursesw clang-tidy-10 src/* -- -I/usr/include -I/usr/include/ncursesw
echo "########## shellcheck ##########" echo "########## shellcheck ##########"