Skip to content

Commit

Permalink
try to CI fix build (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed Oct 30, 2023
1 parent dafc7db commit c13e5f0
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/clang15/clang15.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM mcr.microsoft.com/devcontainers/base:alpine-3.17
RUN \
apk add --update --no-cache \
clang15 \
libc++-dev \
cmake \
ninja \
git \
Expand All @@ -11,6 +12,19 @@ RUN \
py3-pip \
&& pip install conan

# install gdb c++ support
RUN \
git clone --depth 1 https://github.com/koutheir/libcxx-pretty-printers.git /usr/share/libcxx-pretty-printers \
&& echo "set print pretty on" > /home/vscode/.gdbinit \
&& echo "set print object on" > /home/vscode/.gdbinit \
&& echo "# See: https://github.com/koutheir/libcxx-pretty-printers" > /home/vscode/.gdbinit \
&& echo "python" > /home/vscode/.gdbinit \
&& echo "import sys" >>/home/vscode/.gdbinit \
&& echo "sys.path.insert(0, '/usr/share/libcxx-pretty-printers/src')" >>/home/vscode/.gdbinit \
&& echo "from libcxx.v1.printers import register_libcxx_printers" >>/home/vscode/.gdbinit \
&& echo "register_libcxx_printers (None)" >>/home/vscode/.gdbinit \
&& echo "end" >>/home/vscode/.gdbinit

ENV \
CC=/usr/bin/clang \
CXX=/usr/bin/clang++
30 changes: 30 additions & 0 deletions .devcontainer/clang16/clang16.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM mcr.microsoft.com/devcontainers/base:alpine-3.18

RUN \
apk add --update --no-cache \
clang16 \
libc++-dev \
cmake \
ninja \
git \
gdb \
linux-headers \
py3-pip \
&& pip install conan

# install gdb c++ support
RUN \
git clone --depth 1 https://github.com/koutheir/libcxx-pretty-printers.git /usr/share/libcxx-pretty-printers \
&& echo "set print pretty on" > /home/vscode/.gdbinit \
&& echo "set print object on" > /home/vscode/.gdbinit \
&& echo "# See: https://github.com/koutheir/libcxx-pretty-printers" > /home/vscode/.gdbinit \
&& echo "python" > /home/vscode/.gdbinit \
&& echo "import sys" >>/home/vscode/.gdbinit \
&& echo "sys.path.insert(0, '/usr/share/libcxx-pretty-printers/src')" >>/home/vscode/.gdbinit \
&& echo "from libcxx.v1.printers import register_libcxx_printers" >>/home/vscode/.gdbinit \
&& echo "register_libcxx_printers (None)" >>/home/vscode/.gdbinit \
&& echo "end" >>/home/vscode/.gdbinit

ENV \
CC=/usr/bin/clang \
CXX=/usr/bin/clang++
16 changes: 16 additions & 0 deletions .devcontainer/clang16/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "clang16",
"build": {
"dockerfile": "./clang16.Dockerfile",
"context": "."
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools"
]
}
},
"remoteUser": "vscode"
}
6 changes: 4 additions & 2 deletions .github/workflows/cmake_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ jobs:
fail-fast: false
matrix:
include:
- image: "arbmind/cmake-clang:3.25.1-13"
preset: "clang"
- image: "arbmind/cmake-clang:3.25.1-14"
preset: "clang"
- image: "arbmind/cmake-clang:3.27.6-17"
preset: "clang"
- image: "arbmind/cmake-clang-libstdcpp:3.25.1-15-12"
preset: "clang-libstdcpp"
- image: "arbmind/cmake-gcc:3.25.1-11"
preset: "gcc"
- image: "arbmind/cmake-gcc:3.25.1-12"
preset: "gcc"
- image: "arbmind/cmake-gcc:3.27.6-13"
preset: "gcc"

steps:
- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/qbs_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ jobs:
fail-fast: false
matrix:
include:
- image: arbmind/qbs-clang:1.21.0-13
build_args: "modules.cpp.cxxStandardLibrary:libc++ modules.cpp.staticLibraries:c++,c++abi"
- image: arbmind/qbs-clang:1.21.0-14
build_args: "modules.cpp.cxxStandardLibrary:libc++ modules.cpp.staticLibraries:c++,c++abi"
- image: arbmind/qbs-clang:2.1.2-17
build_args: "modules.cpp.cxxStandardLibrary:libc++ modules.cpp.staticLibraries:c++,c++abi"
- image: arbmind/qbs-clang-libstdcpp:1.24.0-15-12
- image: arbmind/qbs-gcc:1.21.0-11
- image: arbmind/qbs-gcc:1.24.0-12
- image: arbmind/qbs-gcc:2.1.2-13

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static_analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
include:
- image: arbmind/cmake-clang:3.25.1-15
- image: arbmind/cmake-clang:3.27.6-17
preset: clang-analyze

steps:
Expand Down
2 changes: 1 addition & 1 deletion script/create_conan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")/.."
BASE_DIR="$(pwd)"

cd conan
conan create . --build=missing --profile "profiles/${ConanProfile}"
conan create . --build=missing --profile "conan/profiles/${ConanProfile}"
6 changes: 3 additions & 3 deletions src/coro19.lib/coro19/coro19.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ StaticLibrary {
cpp.cxxFlags: base.concat("/await") // enable coroutine-ts
}
Properties {
condition: qbs.toolchain.contains('msvc') && qbs.toolchain.contains('clang-cl')
condition: qbs.toolchain.contains('msvc') && qbs.toolchain.contains('clang-cl') && cpp.compilerVersionMajor < 11
cpp.cxxFlags: base.concat("-Xclang", "-fcoroutines-ts") // enable coroutine-ts
}
Properties {
condition: qbs.toolchain.contains('clang')
condition: qbs.toolchain.contains('clang') && cpp.compilerVersionMajor < 11
cpp.cxxFlags: base.concat("-fcoroutines-ts") // enable coroutine-ts
}

Expand All @@ -33,7 +33,7 @@ StaticLibrary {
cpp.cxxFlags: base.concat("/await") // enable coroutine-ts
}
Properties {
condition: qbs.toolchain.contains('msvc') && qbs.toolchain.contains('clang-cl')
condition: qbs.toolchain.contains('msvc') && qbs.toolchain.contains('clang-cl') && cpp.compilerVersionMajor < 11
cpp.cxxFlags: base.concat("-Xclang", "-fcoroutines-ts") // enable coroutine-ts
}
Properties {
Expand Down
1 change: 1 addition & 0 deletions src/enum19.lib/enum19/Enum.ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <ostream>
#include <string19/StringView.ostream.h>
#include <stdint.h> // int64_t, uint64_t

namespace enum19 {

Expand Down

0 comments on commit c13e5f0

Please sign in to comment.