Skip to content

Commit e6972b0

Browse files
ci: uninstall pre-installed swift toolchain on Linux
This is a workaround for https://bugs.swift.org/browse/SR-15135 to avoid building with Early SwiftDriver.
1 parent b2610c0 commit e6972b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
timeout-minutes: 0
4343
runs-on: ${{ matrix.build_os }}
4444
steps:
45+
# TODO(katei): Remove this step after https://bugs.swift.org/browse/SR-15135 will be resolved
46+
- name: (Workaround) Uninstall pre-installed Swift toolchain on Linux
47+
if: ${{ matrix.build_os == 'ubuntu-20.04' || matrix.build_os == 'ubuntu-18.04' }}
48+
run: |
49+
# Installer script is here: https://github.com/actions/virtual-environments/blob/1cbea058249db750691ec74f1b3ba9a7b1605d26/images/linux/scripts/installers/swift.sh
50+
rm -f /usr/local/bin/swiftc /usr/local/bin/swift
51+
rm -rf /usr/share/swift/
52+
4553
- name: Free disk space
4654
if: ${{ matrix.build_os == 'ubuntu-20.04' || matrix.build_os == 'ubuntu-18.04' }}
4755
run: |

0 commit comments

Comments
 (0)