Skip to content

Commit d13fb60

Browse files
committed
Cleanup build config
1 parent dd780fd commit d13fb60

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/linux.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,18 @@ jobs:
129129
- name: Add repositories for newer GCC
130130
run: |
131131
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
132-
if: ${{ matrix.cxx == 'g++-11' || matrix.cxx == 'g++-13' }}
132+
if: ${{ matrix.cxx == 'g++-13' }}
133133

134134
- name: Add Ubuntu mirrors
135135
run: |
136136
# GitHub Actions caching proxy is at times unreliable
137-
# see https://github.com/actions/runner-images/issues/7048
138-
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
139-
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
140-
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list
137+
# see https://github.com/actions/runner-images/issues/7048.
138+
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | \
139+
sudo tee /etc/apt/mirrors.txt
140+
curl http://mirrors.ubuntu.com/mirrors.txt | \
141+
sudo tee --append /etc/apt/mirrors.txt
142+
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' \
143+
/etc/apt/sources.list
141144
142145
- name: Create build environment
143146
run: |

0 commit comments

Comments
 (0)