Skip to content

Commit 2c8785c

Browse files
authored
[GHA] Support running on hosts without pre-configured python 3.9
* Added new action to install python and install depenencies. Also set up the repo to use uv. * Add explicit step to setup python * Remove custom action to setup python * Specify python version to use
1 parent 358f9f1 commit 2c8785c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,10 @@ jobs:
681681
path: ${{ github.workspace }}/SourceCache/swift
682682
show-progress: false
683683

684+
- uses: actions/setup-python@v5
685+
with:
686+
python-version: '3.9'
687+
684688
- name: Configure Tools
685689
run: |
686690
$LLVM_EXTERNAL_SWIFT_SOURCE_DIR = cygpath -m ${{ github.workspace }}/SourceCache/swift
@@ -1170,6 +1174,9 @@ jobs:
11701174
}
11711175
11721176
- uses: actions/setup-python@v5
1177+
with:
1178+
python-version: '3.9'
1179+
11731180
- uses: jannekem/run-python-script-action@v1
11741181
with:
11751182
script: |
@@ -1682,6 +1689,10 @@ jobs:
16821689
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
16831690
local-cache: true
16841691

1692+
- uses: actions/setup-python@v5
1693+
with:
1694+
python-version: '3.9'
1695+
16851696
- name: Configure LLVM
16861697
if: matrix.os != 'Android' || inputs.build_android
16871698
run: |
@@ -2123,6 +2134,10 @@ jobs:
21232134
setup-vs-dev-env: ${{ matrix.os == 'Windows' }}
21242135
host-arch: ${{ matrix.arch }}
21252136

2137+
- uses: actions/setup-python@v5
2138+
with:
2139+
python-version: '3.9'
2140+
21262141
- name: Compute workspace hash
21272142
if: matrix.os != 'Android' || inputs.build_android
21282143
id: workspace_hash
@@ -3520,6 +3535,9 @@ jobs:
35203535
cmake --build ${{ github.workspace }}/BinaryCache/libdispatch --target install
35213536
35223537
- uses: actions/setup-python@v5
3538+
with:
3539+
python-version: '3.9'
3540+
35233541
- uses: jannekem/run-python-script-action@v1
35243542
if: matrix.os != 'Android' || inputs.build_android
35253543
with:

0 commit comments

Comments
 (0)