Skip to content

Commit 578c4f3

Browse files
committed
ci: use newer gcc-14 in ubuntu
1 parent dbf51bc commit 578c4f3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,20 @@ jobs:
134134
135135
- name: Setup GCC (Linux)
136136
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
137+
run: |
138+
echo "deb http://ubuntu.com/ubuntu/ oracular main" > /etc/apt/sources.list.d/new_ubuntu.list
139+
sudo apt-get update
140+
sudo apt-get install gcc-14 g++-14
141+
echo "CC=gcc-14" >> "$GITHUB_ENV"
142+
echo "CXX=g++-14" >> "$GITHUB_ENV"
143+
rm -rf /etc/apt/sources.list.d/new_ubuntu.list
144+
sudo apt-get update
141145
142146
- name: Setup Clang (MacOS)
143147
if: matrix.config.os == 'macos'
144148
run: |
145149
brew update
146-
# TODO annotat5e with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
150+
# TODO annotate with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
147151
brew install llvm@19 lld
148152
echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH
149153
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)