From 272ec0dd16f58f049df0944e0654f85b67abd55f Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Thu, 24 Oct 2024 19:29:40 +0200 Subject: [PATCH] GitLab CI: Build with clang 16 on SteamOS --- .gitlab-ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cbfeb72e..1230652f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,13 +45,14 @@ steamos: image: registry.gitlab.steamos.cloud/steamrt/sniper/sdk stage: build script: - - cd /usr/local/include - - curl --silent -O -L https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2 - - tar -xf *.tar.bz2 --strip-components=1 boost_1_80_0/boost - - cd - - - cmake -Bbuild-steamos -GNinja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=0 + - apt-get install -y libboost-dev libc++abi-16-dev libc++-16-dev clang-16 + - export LDFLAGS=-static-libstdc++ + - export CXXFLAGS=-stdlib=libc++ + - export CC=clang-16 + - export CXX=clang++-16 + - cmake -Bbuild-steamos -GNinja -DCMAKE_BUILD_TYPE=Debug - cmake --build build-steamos - - cmake -Bbuild-steamos-release -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=0 -DJNGL_VIDEO=0 -DJNGL_BUILD_WEBP_FROM_SOURCE=1 -DBUILD_SHARED_LIBS=0 + - cmake -Bbuild-steamos-release -GNinja -DCMAKE_BUILD_TYPE=Release -DJNGL_VIDEO=0 -DJNGL_BUILD_WEBP_FROM_SOURCE=1 -DBUILD_SHARED_LIBS=0 - cmake --build build-steamos-release web: