Skip to content

Commit e3bb895

Browse files
committed
Fix GitHub Actions CI
Microsoft apt repos break apt-get update for several days at every update, and there is no plan to fix these. As we are not using the repos, the best course of action is just to remove them. See: * actions/runner-images#323 * dotnet/core#4167
1 parent 34042f6 commit e3bb895

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ jobs:
3636
- name: Display environment variables
3737
shell: bash
3838
run: env
39-
39+
40+
# Remove apt repos that are known to break from time to time
41+
# See https://github.com/actions/virtual-environments/issues/323
42+
- name: Remove broken apt repos [Ubuntu]
43+
if: matrix.os == 'ubuntu-latest'
44+
run: |
45+
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
46+
4047
# ============
4148
# DEPENDENCIES
4249
# ============
@@ -173,4 +180,3 @@ jobs:
173180
run: |
174181
cd build
175182
cmake --build . --config ${{ matrix.build_type }} --target install
176-

0 commit comments

Comments
 (0)