1010 os : [windows-2019, ubuntu-22.04]
1111
1212 steps :
13- - uses : actions/setup-python@v4
14- with :
15- python-version : 3.9
16-
1713 - name : Cache interpreters
1814 uses : actions/cache@v3
1915 id : cache
3127 with :
3228 version : " 0.9.17"
3329
34- - name : Install requirements
35- if : steps.cache.outputs.cache-hit != 'true'
36- run : pip install -r requirements.txt
37-
3830 - name : Create interpreters
3931 if : steps.cache.outputs.cache-hit != 'true'
40- run : python tools/build.py create_interpreters ${{ env.PYTHON_VERSION }} --dest .
32+ run : uv run tools/build.py create_interpreters ${{ env.PYTHON_VERSION }} --dest .
4133
4234 - name : Tar interpreters
4335 if : steps.cache.outputs.cache-hit != 'true'
6052 arch : [x64, x86]
6153
6254 steps :
63- - uses : actions/setup-python@v4
55+ - name : Install uv
56+ uses : astral-sh/setup-uv@v7
6457 with :
65- python- version : 3.9
58+ version : " 0.9.17 "
6659
6760 - name : Check out repository code
6861 uses : actions/checkout@v3
8679 arch : ${{ matrix.arch }}
8780
8881 - name : Perform build
89- run : python tools/build.py build_binaries ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
82+ run : uv run tools/build.py build_binaries ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
9083
9184 - uses : actions/upload-artifact@v4
9285 with :
@@ -102,9 +95,10 @@ jobs:
10295 Build-PBO :
10396 runs-on : windows-latest
10497 steps :
105- - uses : actions/setup-python@v4
98+ - name : Install uv
99+ uses : astral-sh/setup-uv@v7
106100 with :
107- python- version : 3.9
101+ version : " 0.9.17 "
108102
109103 - name : Check out repository code
110104 uses : actions/checkout@v3
@@ -119,7 +113,7 @@ jobs:
119113 - name : Install Mikero's tools
120114 uses : arma-actions/mikero-tools@bec8b18fc507ee3180cadeaf35249d3f2702b1ff
121115
122- - run : python tools/build.py build_pbos
116+ - run : uv run tools/build.py build_pbos
123117
124118 - uses : actions/upload-artifact@v4
125119 with :
@@ -140,9 +134,10 @@ jobs:
140134 arch : [x64, x86]
141135
142136 steps :
143- - uses : actions/setup-python@v4
137+ - name : Install uv
138+ uses : astral-sh/setup-uv@v7
144139 with :
145- python- version : 3.9
140+ version : " 0.9.17 "
146141
147142 - name : Check out repository code
148143 uses : actions/checkout@v3
@@ -173,10 +168,10 @@ jobs:
173168 run : sudo apt install -y gcc-multilib
174169
175170 - name : Copy templates
176- run : python tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
171+ run : uv run tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
177172
178173 - name : Run basic tests
179- run : python tools/build.py run_tests ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
174+ run : uv run tools/build.py run_tests ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
180175
181176 Consolidate :
182177 needs :
@@ -185,9 +180,10 @@ jobs:
185180 - Build-PBO
186181 runs-on : ubuntu-latest
187182 steps :
188- - uses : actions/setup-python@v4
183+ - name : Install uv
184+ uses : astral-sh/setup-uv@v7
189185 with :
190- python- version : 3.9
186+ version : " 0.9.17 "
191187
192188 - name : Check out repository code
193189 uses : actions/checkout@v3
@@ -215,13 +211,12 @@ jobs:
215211 run : chmod a+x @Pythia/PythiaTester*
216212
217213 - name : Copy templates
218- run : python tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
214+ run : uv run tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
219215
220216 - name : Unpack interpreters
221217 run : for i in python-*.tar; do tar xf "$i" --directory "@Pythia"; done
222218
223- - run : pip install -r requirements.txt
224- - run : python tools/build.py safety_checks ${{ env.PYTHON_VERSION }}
219+ - run : uv run tools/build.py safety_checks ${{ env.PYTHON_VERSION }}
225220
226221 - name : Remove linux 32bit Pythia
227222 run : rm -rf @Pythia/python-*-embed-linux32 @Pythia/Pythia.so @Pythia/PythiaSetPythonPath.so @Pythia/PythiaTester @Pythia/install_requirements32.sh
0 commit comments