CI: build: fix ccache cache usage
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 28 May 2023 01:15:50 +0000 (03:15 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 24 Oct 2023 15:12:04 +0000 (17:12 +0200)
commit51adcb7cd223f56984abdc27b929d16bde4284cf
tree67d7c078ca881026b5f3d041fd23f379fb64b5e5
parentd7e2468e13fb871026e1969845a1c5ccb9a1dcee
CI: build: fix ccache cache usage

CCache cache is currently broken due to a funny bug in ccache compiler
type detection. It seems ccache compiler type detection is very fragile
and with the use of external toolchain doesn't correctly detect the
type.
The type detected is set to other instead of gcc resulting in ccache
complaining for unsupported compiler options.

To handle this problem, force the compiler type to gcc to make ccache
correctly work and speedup compilation.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit ae7b05328cf471780de8559fba845c4b564e059e)
.github/workflows/build.yml