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/ +