Skip to content

Commit

Permalink
⚗️ simplify script
Browse files Browse the repository at this point in the history
Signed-off-by: burgholzer <[email protected]>
  • Loading branch information
burgholzer committed Aug 20, 2024
1 parent ba29c31 commit 03e7c6a
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,41 +31,24 @@ jobs:
- name: Setup venv
run: |
C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe -m venv .venv
- name: Build local project
run: |
.\.venv\Scripts\python.exe -m pip install -v . --no-deps
- name: Remove the build directory
run: rm -r -Force build
- name: Setup new venv
run: |
C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe -m venv .venv2
- name: Use `build` to build the project
run: |
.\.venv2\Scripts\python.exe -m pip install build
.\.venv2\Scripts\python.exe -m build --wheel
- name: Remove the build directory (again)
run: rm -r -Force build
- name: Setup new venv (again)
run: |
C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe -m venv .venv3
- name: Use `build[uv]` to build the project using ClangCL
env:
CMAKE_ARGS: "-T ClangCL"
run: |
.\.venv3\Scripts\python.exe -m pip install build[uv]
.\.venv3\Scripts\python.exe -m build --wheel --installer=uv
- name: Remove the build directory (again)
.\.venv\Scripts\python.exe -m pip install build[uv]
.\.venv\Scripts\python.exe -m build --wheel --installer=uv
- name: Remove the build directory
run: rm -r -Force build
- name: Clear the uv cache
run: |
uv.exe cache clear
- name: Setup new venv
run: |
C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe -m venv .venv4
C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe -m venv .venv2
- name: Use `build[uv]` to build the project
run: |
.\.venv4\Scripts\python.exe -m pip install build[uv]
.\.venv4\Scripts\python.exe -m build --wheel --installer=uv
.\.venv2\Scripts\python.exe -m pip install build[uv]
.\.venv2\Scripts\python.exe -m build --wheel --installer=uv
deploy:
if: github.event_name == 'release' && github.event.action == 'published'
Expand Down

0 comments on commit 03e7c6a

Please sign in to comment.