|
36 | 36 | name: ue4ss_installer_gui_x86_64-unknown-linux-gnu |
37 | 37 | path: dist/ue4ss_installer_gui_x86_64-unknown-linux-gnu.zip |
38 | 38 |
|
39 | | - setup_ubuntu_aarch64: |
40 | | - if: github.ref == 'refs/heads/main' |
41 | | - runs-on: ubuntu-24.04-arm |
42 | | - steps: |
43 | | - - name: Checkout repository |
44 | | - uses: actions/checkout@v4 |
45 | | - with: |
46 | | - ref: 'refs/heads/dev' |
47 | | - |
48 | | - - name: Setup Python (arm64) |
49 | | - uses: actions/setup-python@v5 |
50 | | - with: |
51 | | - python-version: 3.x |
52 | | - architecture: "arm64" |
53 | | - |
54 | | - - name: Install Hatch |
55 | | - run: pip install hatch |
56 | | - |
57 | | - - name: Create Hatch virtual environment for aarch64-linux |
58 | | - run: hatch env create aarch64-unknown-linux-gnu |
59 | | - |
60 | | - - name: Build Release |
61 | | - run: hatch run py_project_dev_tools make_exe_release_ci_cd --os_arch_line "aarch64-unknown-linux-gnu" |
62 | | - |
63 | | - - name: Upload artifact |
64 | | - uses: actions/upload-artifact@v4 |
65 | | - with: |
66 | | - name: ue4ss_installer_gui_aarch64-unknown-linux-gnu |
67 | | - path: dist/ue4ss_installer_gui_aarch64-unknown-linux-gnu.zip |
68 | | - |
69 | 39 | setup_windows_x86_64: |
70 | 40 | if: github.ref == 'refs/heads/main' |
71 | 41 | runs-on: windows-latest |
|
96 | 66 | name: ue4ss_installer_gui_x86_64-pc-windows-msvc |
97 | 67 | path: dist/ue4ss_installer_gui_x86_64-pc-windows-msvc.zip |
98 | 68 |
|
99 | | - setup_windows_i686: |
100 | | - if: github.ref == 'refs/heads/main' |
101 | | - runs-on: windows-latest |
102 | | - steps: |
103 | | - - name: Checkout repository |
104 | | - uses: actions/checkout@v4 |
105 | | - with: |
106 | | - ref: 'refs/heads/dev' |
107 | | - |
108 | | - - name: Setup Python (x86) |
109 | | - uses: actions/setup-python@v5 |
110 | | - with: |
111 | | - python-version: 3.x |
112 | | - architecture: "x86" |
113 | | - |
114 | | - - name: Install Hatch |
115 | | - run: pip install hatch |
116 | | - |
117 | | - - name: Create Hatch virtual environment for i686-windows |
118 | | - run: hatch env create i686-pc-windows-msvc |
119 | | - |
120 | | - - name: Build Release |
121 | | - run: hatch run py_project_dev_tools make_exe_release_ci_cd --os_arch_line "i686-pc-windows-msvc" |
122 | | - |
123 | | - - name: Upload artifact |
124 | | - uses: actions/upload-artifact@v4 |
125 | | - with: |
126 | | - name: ue4ss_installer_gui_i686-pc-windows-msvc |
127 | | - path: dist/ue4ss_installer_gui_i686-pc-windows-msvc.zip |
128 | | - |
129 | 69 | bump_version: |
130 | 70 | runs-on: ubuntu-latest |
131 | | - needs: [setup_ubuntu_x86_64, setup_ubuntu_aarch64, setup_windows_x86_64, setup_windows_i686] |
| 71 | + needs: [setup_ubuntu_x86_64, setup_windows_x86_64] |
132 | 72 | steps: |
133 | 73 | - name: Check out |
134 | 74 | uses: actions/checkout@v4 |
@@ -160,111 +100,22 @@ jobs: |
160 | 100 | name: body.md |
161 | 101 | path: body.md |
162 | 102 |
|
163 | | - |
164 | | - |
165 | | - setup_wheels_and_source_distributions: |
166 | | - runs-on: ubuntu-latest |
167 | | - outputs: |
168 | | - wheel_artifact_name: ${{ steps.find_wheel.outputs.artifact_name }} |
169 | | - sdist_artifact_name: ${{ steps.find_sdist.outputs.artifact_name }} |
170 | | - needs: [bump_version] |
171 | | - steps: |
172 | | - - name: Checkout repository |
173 | | - uses: actions/checkout@v4 |
174 | | - with: |
175 | | - ref: 'refs/heads/dev' |
176 | | - |
177 | | - - name: Setup Python (x64) |
178 | | - uses: actions/setup-python@v5 |
179 | | - with: |
180 | | - python-version: 3.x |
181 | | - architecture: "x64" |
182 | | - |
183 | | - - name: Install Hatch |
184 | | - run: pip install hatch |
185 | | - |
186 | | - - name: Build Wheels and Source Distributions |
187 | | - run: hatch build |
188 | | - |
189 | | - # - name: Publish Wheels and Source Distributions |
190 | | - # run: hatch publish --repo "main" --user "__token__" --auth "${{ secrets.PYPI_PASSWORD }}" |
191 | | - |
192 | | - - name: Find wheel file |
193 | | - id: find_wheel |
194 | | - run: | |
195 | | - WHEEL_PATH=$(find dist -name "*.whl" | head -n 1) |
196 | | - WHEEL_NAME=$(basename "$WHEEL_PATH") |
197 | | - ARTIFACT_NAME="${WHEEL_NAME%.whl}" |
198 | | - echo "wheel_path=$WHEEL_PATH" >> "$GITHUB_OUTPUT" |
199 | | - echo "artifact_name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT" |
200 | | -
|
201 | | - - name: Upload python wheel artifact |
202 | | - uses: actions/upload-artifact@v4 |
203 | | - with: |
204 | | - name: ${{ steps.find_wheel.outputs.artifact_name }} |
205 | | - path: ${{ steps.find_wheel.outputs.wheel_path }} |
206 | | - |
207 | | - - name: Find sdist file |
208 | | - id: find_sdist |
209 | | - run: | |
210 | | - SDIST_PATH=$(find dist -name "*.tar.gz" | head -n 1) |
211 | | - SDIST_NAME=$(basename "$SDIST_PATH") |
212 | | - ARTIFACT_NAME="${SDIST_NAME%.tar.gz}" |
213 | | - echo "sdist_path=$SDIST_PATH" >> "$GITHUB_OUTPUT" |
214 | | - echo "artifact_name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT" |
215 | | -
|
216 | | - - name: Upload python sdist artifact |
217 | | - uses: actions/upload-artifact@v4 |
218 | | - with: |
219 | | - name: ${{ steps.find_sdist.outputs.artifact_name }} |
220 | | - path: ${{ steps.find_sdist.outputs.sdist_path }} |
221 | | - |
222 | 103 | setup_github_releases: |
223 | 104 | runs-on: ubuntu-latest |
224 | | - needs: [setup_wheels_and_source_distributions] |
| 105 | + needs: [bump_version] |
225 | 106 | steps: |
226 | 107 | - name: Download ubuntu_x86_64_artifact |
227 | 108 | uses: actions/download-artifact@v4 |
228 | 109 | with: |
229 | 110 | name: ue4ss_installer_gui_x86_64-unknown-linux-gnu |
230 | 111 | path: ./dist |
231 | 112 |
|
232 | | - - name: Download ubuntu_aarch64_artifact |
233 | | - uses: actions/download-artifact@v4 |
234 | | - with: |
235 | | - name: ue4ss_installer_gui_aarch64-unknown-linux-gnu |
236 | | - path: ./dist |
237 | | - |
238 | 113 | - name: Download windows_x86_64_artifact |
239 | 114 | uses: actions/download-artifact@v4 |
240 | 115 | with: |
241 | 116 | name: ue4ss_installer_gui_x86_64-pc-windows-msvc |
242 | 117 | path: ./dist |
243 | 118 |
|
244 | | - - name: Download windows_i686_artifact |
245 | | - uses: actions/download-artifact@v4 |
246 | | - with: |
247 | | - name: ue4ss_installer_gui_i686-pc-windows-msvc |
248 | | - path: ./dist |
249 | | - |
250 | | - - name: Download windows_i686_artifact |
251 | | - uses: actions/download-artifact@v4 |
252 | | - with: |
253 | | - name: ue4ss_installer_gui_i686-pc-windows-msvc |
254 | | - path: ./dist |
255 | | - |
256 | | - - name: Download python_wheel_artifact |
257 | | - uses: actions/download-artifact@v4 |
258 | | - with: |
259 | | - name: ${{ needs.setup_wheels_and_source_distributions.outputs.wheel_artifact_name }} |
260 | | - path: ./dist |
261 | | - |
262 | | - - name: Download python_sdist_artifact |
263 | | - uses: actions/download-artifact@v4 |
264 | | - with: |
265 | | - name: ${{ needs.setup_wheels_and_source_distributions.outputs.sdist_artifact_name }} |
266 | | - path: ./dist |
267 | | - |
268 | 119 | - name: Download version.txt artifact |
269 | 120 | uses: actions/download-artifact@v4 |
270 | 121 | with: |
@@ -320,8 +171,6 @@ jobs: |
320 | 171 | tag_name: ${{ steps.extract_version.outputs.version }} |
321 | 172 | files: | |
322 | 173 | dist/*.zip |
323 | | - dist/*.whl |
324 | | - dist/*.tar.gz |
325 | 174 | dist/*.sha256 |
326 | 175 | prerelease: true |
327 | 176 | env: |
|
0 commit comments