diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-27 20:43:30 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-27 20:43:30 +0200 |
commit | c6d109d477a16ca39027cd624dfd3517bfdcc5e0 (patch) | |
tree | 148eca818611d55f605954636ca4383851dcc2c6 | |
parent | fix a typo (diff) | |
download | cimple-c6d109d477a16ca39027cd624dfd3517bfdcc5e0.tar.gz cimple-c6d109d477a16ca39027cd624dfd3517bfdcc5e0.zip |
ci.sh: build w/ gcc & clang
Diffstat (limited to '')
-rwxr-xr-x | ci.sh | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -3,4 +3,29 @@ set -o errexit -o nounset -o pipefail shopt -s inherit_errexit lastpipe -docker-compose build --progress plain --pull +test_build() { + docker-compose build --progress plain --pull "$@" +} + +test_build_clang() { + echo ---------------------------------------------------------------------- + echo Building w/ clang + echo ---------------------------------------------------------------------- + echo + test_build --build-arg C_COMPILER=clang +} + +test_build_gcc() { + echo ---------------------------------------------------------------------- + echo Building w/ gcc + echo ---------------------------------------------------------------------- + echo + test_build --build-arg C_COMPILER=gcc +} + +main() { + test_build_clang + test_build_gcc +} + +main |