From e481b9989b2e415b5325e4e239be906b798679c6 Mon Sep 17 00:00:00 2001 From: Seonghyeon Cho Date: Wed, 12 Jun 2024 23:14:31 +0900 Subject: [PATCH] setup clang, ignore build --- .github/ci_setup_clang.sh | 12 ++++++++++++ .github/workflows/ci.yml | 2 +- .gitignore | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/ci_setup_clang.sh diff --git a/.github/ci_setup_clang.sh b/.github/ci_setup_clang.sh new file mode 100644 index 0000000..140f9f9 --- /dev/null +++ b/.github/ci_setup_clang.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -ex + +VERSION=$1 + +apt-get update +apt-get install -y libc++-${VERSION}-dev libc++abi-${VERSION}-dev + +if [[ "${VERSION}" -ge 12 ]]; then + apt-get install -y --no-install-recommends libunwind-${VERSION}-dev +fi diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 999c36c..b58beaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: if: matrix.config.compiler == 'clang' run: | if [[ "${{ matrix.config.version }}" -ge 4 ]]; then - scripts/ci_setup_clang.sh "${{ matrix.config.version }}" + .github/ci_setup_clang.sh "${{ matrix.config.version }}" echo "CXXFLAGS=-stdlib=libc++" >> $GITHUB_ENV fi echo "CC=clang-${{ matrix.config.version }}" >> $GITHUB_ENV diff --git a/.gitignore b/.gitignore index cd7a286..81dc394 100644 --- a/.gitignore +++ b/.gitignore @@ -200,3 +200,5 @@ Temporary Items # End of https://www.toptal.com/developers/gitignore/api/macos,clion,cmake,c++ +build/ +