@@ -11,6 +11,9 @@ concurrency:
11
11
group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
12
12
cancel-in-progress : true
13
13
14
+ env :
15
+ PYTHON_VENV_ROOT : ${{ github.workspace }}/src/python-venv
16
+
14
17
jobs :
15
18
build_arm64 :
16
19
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md
23
26
with :
24
27
submodules : ' recursive'
25
28
26
- - name : Install pip dependencies
27
- working-directory : ./src
29
+ - name : Setup Python
28
30
run : |
31
+ python3 -m venv ${PYTHON_VENV_ROOT}
32
+ source ${PYTHON_VENV_ROOT}/bin/activate
29
33
python3 -m pip install requests
30
34
31
35
- name : Try to restore update_deps cache
@@ -38,11 +42,13 @@ jobs:
38
42
working-directory : ./src
39
43
# This command uses src/third_party_cache as the download cache.
40
44
run : |
45
+ source ${PYTHON_VENV_ROOT}/bin/activate
41
46
python3 build_tools/update_deps.py
42
47
43
48
- name : Build Qt
44
49
working-directory : ./src
45
50
run : |
51
+ source ${PYTHON_VENV_ROOT}/bin/activate
46
52
python3 build_tools/build_qt.py --release --confirm_license --macos_cpus=arm64
47
53
echo "MOZC_QT_PATH=${PWD}/third_party/qt" >> $GITHUB_ENV
48
54
69
75
with :
70
76
submodules : ' recursive'
71
77
72
- - name : Install pip dependencies
73
- working-directory : ./src
78
+ - name : Setup Python
74
79
run : |
80
+ python3 -m venv ${PYTHON_VENV_ROOT}
81
+ source ${PYTHON_VENV_ROOT}/bin/activate
75
82
python3 -m pip install requests
76
83
77
84
- name : Try to restore update_deps cache
@@ -84,11 +91,13 @@ jobs:
84
91
working-directory : ./src
85
92
# This command uses src/third_party_cache as the download cache.
86
93
run : |
94
+ source ${PYTHON_VENV_ROOT}/bin/activate
87
95
python3 build_tools/update_deps.py
88
96
89
97
- name : Build Qt
90
98
working-directory : ./src
91
99
run : |
100
+ source ${PYTHON_VENV_ROOT}/bin/activate
92
101
python3 build_tools/build_qt.py --release --confirm_license --macos_cpus=x86_64
93
102
echo "MOZC_QT_PATH=${PWD}/third_party/qt" >> $GITHUB_ENV
94
103
@@ -115,9 +124,10 @@ jobs:
115
124
with :
116
125
submodules : ' recursive'
117
126
118
- - name : Install pip dependencies
119
- working-directory : ./src
127
+ - name : Setup Python
120
128
run : |
129
+ python3 -m venv ${PYTHON_VENV_ROOT}
130
+ source ${PYTHON_VENV_ROOT}/bin/activate
121
131
python3 -m pip install requests
122
132
123
133
- name : Try to restore update_deps cache
@@ -130,11 +140,13 @@ jobs:
130
140
working-directory : ./src
131
141
# This command uses src/third_party_cache as the download cache.
132
142
run : |
143
+ source ${PYTHON_VENV_ROOT}/bin/activate
133
144
python3 build_tools/update_deps.py
134
145
135
146
- name : Build Qt
136
147
working-directory : ./src
137
148
run : |
149
+ source ${PYTHON_VENV_ROOT}/bin/activate
138
150
python3 build_tools/build_qt.py --release --confirm_license --macos_cpus=x86_64,arm64
139
151
echo "MOZC_QT_PATH=${PWD}/third_party/qt" >> $GITHUB_ENV
140
152
@@ -161,9 +173,10 @@ jobs:
161
173
with :
162
174
submodules : ' recursive'
163
175
164
- - name : Install pip dependencies
165
- working-directory : ./src
176
+ - name : Setup Python
166
177
run : |
178
+ python3 -m venv ${PYTHON_VENV_ROOT}
179
+ source ${PYTHON_VENV_ROOT}/bin/activate
167
180
python3 -m pip install requests
168
181
169
182
- name : Try to restore update_deps cache
@@ -176,11 +189,13 @@ jobs:
176
189
working-directory : ./src
177
190
# This command uses src/third_party_cache as the download cache.
178
191
run : |
192
+ source ${PYTHON_VENV_ROOT}/bin/activate
179
193
python3 build_tools/update_deps.py
180
194
181
195
- name : Build Qt
182
196
working-directory : ./src
183
197
run : |
198
+ source ${PYTHON_VENV_ROOT}/bin/activate
184
199
python3 build_tools/build_qt.py --release --confirm_license
185
200
echo "MOZC_QT_PATH=${PWD}/third_party/qt" >> $GITHUB_ENV
186
201
@@ -201,9 +216,10 @@ jobs:
201
216
- name : checkout
202
217
uses : actions/checkout@v4
203
218
204
- - name : Install pip dependencies
205
- working-directory : ./src
219
+ - name : Setup Python
206
220
run : |
221
+ python3 -m venv ${PYTHON_VENV_ROOT}
222
+ source ${PYTHON_VENV_ROOT}/bin/activate
207
223
python3 -m pip install requests
208
224
209
225
- name : Try to restore update_deps cache
@@ -216,4 +232,5 @@ jobs:
216
232
working-directory : ./src
217
233
# This command uses src/third_party_cache as the download cache.
218
234
run : |
235
+ source ${PYTHON_VENV_ROOT}/bin/activate
219
236
python3 build_tools/update_deps.py --cache_only
0 commit comments