File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 43
43
run : |
44
44
brew install conan@2
45
45
- name : Install dependencies
46
- if : true
47
46
run : |
48
-
49
- which cc
50
- cc --version
51
47
brew install llvm@16
52
48
brew install conan@2
53
49
echo 'export PATH="/usr/local/opt/llvm@16/bin:$PATH"' >> ~/.bash_profile
@@ -64,20 +60,12 @@ jobs:
64
60
echo CXX="/usr/local/opt/llvm@16/bin/clang++" >> $GITHUB_ENV
65
61
source ~/.bash_profile
66
62
- name : Print clang version
67
- run : |
68
- clang++ --version
69
- echo 'int main() {}' >> test.cpp
70
- clang++ test.cpp -stdlib=libc++ -v
71
- clang test.cpp -stdlib=libc++ -v
72
- $CC test.cpp -stdlib=libc++ -v
73
- $CXX test.cpp -stdlib=libc++ -v
74
- c++ test.cpp
63
+ run : clang++ --version
75
64
76
65
- name : Cache for conan
77
- if : false
78
66
uses : actions/cache@v3
79
67
env :
80
- cache-name : cache-conan-modules
68
+ cache-name : cache-conan-modules-macos-13
81
69
with :
82
70
path : ~/.conan2
83
71
key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('conanfile.txt') }}
86
74
- name : Install and run conan
87
75
working-directory : ${{github.workspace}}/build
88
76
run : |
89
- which cc
90
- cc --version
91
- #conan profile detect
92
77
conan install .. -pr:b=../conanprofiles/clang-16-macos -pr:h=../conanprofiles/clang-16-macos -of=. --build=missing
93
- #conan install .. -of=. --build=missing --verbose
94
78
- name : Configure CMake
95
79
# For std::ranges::join_view we need the -fexperimental-library flag on libc++16, which on Mac requires to manually tinker with the linking flags.
96
80
run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DCMAKE_TOOLCHAIN_FILE="$(pwd)/build/conan_toolchain.cmake" -DUSE_PARALLEL=true -DRUN_EXPENSIVE_TESTS=false -DENABLE_EXPENSIVE_CHECKS=true -DCMAKE_CXX_COMPILER=clang++ -DADDITIONAL_COMPILER_FLAGS="-fexperimental-library" -D_NO_TIMING_TESTS=ON -DADDITIONAL_LINKER_FLAGS="-L$(brew --prefix llvm)/lib/c++"
You can’t perform that action at this time.
0 commit comments