@@ -26,10 +26,10 @@ jobs:
2626 fail-fast : false
2727 matrix :
2828 include :
29- - {os: ubuntu-22 .04, cc: gcc-12 , cxx: g++-12 }
30- - {os: ubuntu-22 .04, cc: clang-15 , cxx: clang++-15 }
31- - {os: macos-12 , cc: gcc-12 , cxx: g++-12 }
32- - {os: macos-12 , cc: clang, cxx: clang++}
29+ - {os: ubuntu-24 .04, cc: gcc, cxx: g++}
30+ - {os: ubuntu-24 .04, cc: clang, cxx: clang++}
31+ - {os: macos-14 , cc: gcc-14 , cxx: g++-14 }
32+ - {os: macos-14 , cc: clang, cxx: clang++}
3333
3434 runs-on : ${{ matrix.os }}
3535
@@ -44,11 +44,10 @@ jobs:
4444 ccache-${{ matrix.os }}-${{ matrix.cc }}-
4545
4646 - name : Install ubuntu dependencies
47- if : matrix.os == 'ubuntu-22.04'
47+ if : ${{ contains( matrix.os, 'ubuntu') }}
4848 run : >
4949 sudo apt-get update &&
5050 sudo apt-get install lsb-release wget software-properties-common &&
51- wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh && sudo chmod +x /tmp/llvm.sh && sudo /tmp/llvm.sh 15 &&
5251 sudo apt-get install
5352 ccache
5453 clang-15
@@ -57,10 +56,10 @@ jobs:
5756 hdf5-tools
5857 libblas-dev
5958 libboost-dev
60- libclang-15- dev
61- libc++-15- dev
62- libc++abi-15- dev
63- libomp-15- dev
59+ libclang-dev
60+ libc++-dev
61+ libc++abi-dev
62+ libomp-dev
6463 libfftw3-dev
6564 libgfortran5
6665 libgmp-dev
7069 openmpi-bin
7170 openmpi-common
7271 openmpi-doc
73- python3-clang-15
72+ python3-clang
7473 python3-dev
7574 python3-mako
7675 python3-matplotlib
@@ -82,29 +81,34 @@ jobs:
8281 python3-nbsphinx
8382
8483 - name : Install homebrew dependencies
85- if : matrix.os == 'macos-12'
84+ if : ${{ contains( matrix.os, 'macos') }}
8685 run : |
87- brew install ccache gcc@12 llvm boost fftw hdf5 open-mpi openblas
86+ brew update
87+ brew install ccache gcc llvm boost fftw hdf5 open-mpi openblas
8888 mkdir $HOME/.venv
8989 python3 -m venv $HOME/.venv/my_python
9090 source $HOME/.venv/my_python/bin/activate
9191 pip install mako numpy scipy mpi4py
9292 pip install -r requirements.txt
9393 echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
94- echo "PATH=$PATH" >> $GITHUB_ENV
94+ echo "PATH=$(brew --prefix llvm)/bin:$(brew --prefix gcc)/bin:$ PATH" >> $GITHUB_ENV
9595
96- - name : add clang cxxflags
96+ - name : Add clang CXXFLAGS
9797 if : ${{ contains(matrix.cxx, 'clang') }}
9898 run : |
99- echo "PATH=/usr/local/opt/llvm/bin:$PATH" >> $GITHUB_ENV
10099 echo "CXXFLAGS=-stdlib=libc++" >> $GITHUB_ENV
101100
101+ - name : Add clang LDFLAGS for macos to link against brew's libc++
102+ if : ${{ contains(matrix.os, 'macos') && contains(matrix.cxx, 'clang') }}
103+ run : |
104+ echo 'LDFLAGS="-L$(brew --prefix llvm)/lib/c++ -L$(brew --prefix llvm)/lib -lunwind"' >> $GITHUB_ENV
105+
102106 - name : Build & Install TRIQS
103107 env :
104108 CC : ${{ matrix.cc }}
105109 CXX : ${{ matrix.cxx }}
106110 run : |
107- git clone https://github.com/TRIQS/triqs --branch unstable
111+ git clone https://github.com/TRIQS/triqs --branch ${{ github.ref_name }}
108112 mkdir triqs/build && cd triqs/build
109113 cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$HOME/install
110114 make -j1 install VERBOSE=1
@@ -128,7 +132,6 @@ jobs:
128132
129133 - name : Test app4triqs
130134 env :
131- DYLD_FALLBACK_LIBRARY_PATH : /usr/local/opt/llvm/lib
132135 OPENBLAS_NUM_THREADS : " 1"
133136 run : |
134137 source $HOME/install/share/triqs/triqsvars.sh
0 commit comments