Skip to content

Commit ce97915

Browse files
committed
ci: update gh workflows to latest, use uv + python pyproject.toml
1 parent 68e028b commit ce97915

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

.github/workflows/build_vcpkg_env.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: windows-2022
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v5
1212

1313
- name: Set up vcpkg
1414
run: |

.github/workflows/publish-docker-gpu.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
timeout-minutes: 2880
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v5
1717
- name: Set up QEMU
1818
uses: docker/setup-qemu-action@v1
1919
- name: Set up Docker Buildx

.github/workflows/publish-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
timeout-minutes: 2880
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v5
1717
- name: Set up QEMU
1818
uses: docker/setup-qemu-action@v1
1919
- name: Set up Docker Buildx

.github/workflows/publish-windows.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: windows-2022
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v5
1616
- name: Setup Python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
1818
with:
19-
python-version: '3.12.10'
19+
python-version-file: "pyproject.toml"
2020
architecture: 'x64'
2121
- uses: Jimver/[email protected]
2222
id: cuda-toolkit
@@ -32,12 +32,13 @@ jobs:
3232
with:
3333
fileName: 'comodo.pfx'
3434
encodedString: ${{ secrets.CODE_SIGNING_CERT }}
35-
- name: Install venv
36-
run: |
37-
python -m pip install virtualenv
35+
- name: Install uv
36+
uses: astral-sh/setup-uv@v6
37+
with:
38+
version: "0.9.5"
3839
- name: Build sources
3940
run: |
40-
python configure.py build
41+
uv run configure.py build
4142
- name: Free up space
4243
run: |
4344
rmdir SuperBuild\download /s /q
@@ -47,7 +48,7 @@ jobs:
4748
env:
4849
CODE_SIGN_CERT_PATH: ${{ steps.code_sign.outputs.filePath }}
4950
run: |
50-
python configure.py dist --code-sign-cert-path $env:CODE_SIGN_CERT_PATH
51+
uv run configure.py dist --code-sign-cert-path $env:CODE_SIGN_CERT_PATH
5152
- name: Upload Setup File
5253
uses: actions/upload-artifact@v4
5354
with:
@@ -62,4 +63,3 @@ jobs:
6263
file_glob: true
6364
tag: ${{ github.ref }}
6465
overwrite: true
65-

.github/workflows/test-build-prs.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v5
1212
- name: Set Swap Space
1313
uses: pierotofy/set-swap-space@master
1414
with:
@@ -32,7 +32,7 @@ jobs:
3232
# - amd64
3333
# steps:
3434
# - name: Checkout
35-
# uses: actions/checkout@v2
35+
# uses: actions/checkout@v5
3636
# - name: Set Swap Space
3737
# uses: pierotofy/set-swap-space@master
3838
# with:
@@ -52,11 +52,11 @@ jobs:
5252
runs-on: windows-2022
5353
steps:
5454
- name: Checkout
55-
uses: actions/checkout@v2
55+
uses: actions/checkout@v5
5656
- name: Setup Python
57-
uses: actions/setup-python@v2
57+
uses: actions/setup-python@v5
5858
with:
59-
python-version: '3.12.10'
59+
python-version-file: "pyproject.toml"
6060
architecture: 'x64'
6161
- uses: Jimver/[email protected]
6262
id: cuda-toolkit
@@ -66,20 +66,21 @@ jobs:
6666
uses: jwlawson/[email protected]
6767
with:
6868
cmake-version: '3.24.x'
69-
- name: Install venv
70-
run: |
71-
python -m pip install virtualenv
69+
- name: Install uv
70+
uses: astral-sh/setup-uv@v6
71+
with:
72+
version: "0.9.5"
7273
- name: Build sources
7374
run: |
74-
python configure.py build
75+
uv run configure.py build
7576
- name: Free up space
7677
run: |
7778
rmdir SuperBuild\download /s /q
7879
rmdir SuperBuild\build /s /q
7980
shell: cmd
8081
- name: Create setup
8182
run: |
82-
python configure.py dist
83+
uv run configure.py dist
8384
- name: Upload Setup File
8485
uses: actions/upload-artifact@v4
8586
with:

0 commit comments

Comments
 (0)