Skip to content

Commit 3387d41

Browse files
committed
ci: use newer gcc-14 in ubuntu
1 parent 8ba3907 commit 3387d41

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,24 +126,29 @@ jobs:
126126
wget https://apt.llvm.org/llvm.sh
127127
chmod +x llvm.sh
128128
sudo ./llvm.sh 19
129-
sudo apt-get install libc++-19* libc++abi*19* -y
129+
# Also install the newest g++ (For the libstd++ library)
130+
sudo apt-get install libc++-19* libc++abi*19* gcc++-14 -y
131+
clang-19 -v
130132
echo "CC=clang-19" >> "$GITHUB_ENV"
131133
echo "CXX=clang++-19" >> "$GITHUB_ENV"
132134
echo "OBJC=clang-19" >> "$GITHUB_ENV"
133135
134-
135136
- name: Setup GCC (Linux)
136137
if: matrix.config.os == 'ubuntu' && matrix.config.use-clang == false
137-
uses: egor-tensin/setup-gcc@v1
138-
with:
139-
version: 14
140-
platform: x64
138+
run: |
139+
echo "deb http://archive.ubuntu.com/ubuntu/ oracular main" | sudo tee -a /etc/apt/sources.list.d/new_ubuntu.list
140+
sudo apt-get update
141+
sudo apt-get install gcc-14 g++-14 -y
142+
echo "CC=gcc-14" >> "$GITHUB_ENV"
143+
echo "CXX=g++-14" >> "$GITHUB_ENV"
144+
sudo rm -rf /etc/apt/sources.list.d/new_ubuntu.list
145+
sudo apt-get update
141146
142147
- name: Setup Clang (MacOS)
143148
if: matrix.config.os == 'macos'
144149
run: |
145150
brew update
146-
# TODO annotat5e with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
151+
# TODO annotate with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
147152
brew install llvm@19 lld
148153
echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH
149154
echo "LDFLAGS=-L$(brew --prefix)/opt/llvm/lib -L$(brew --prefix)/opt/llvm/lib/c++ -Wl,-rpath,$(brew --prefix)/opt/llvm/lib/c++" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)