Skip to content

Commit a87a42b

Browse files
authored
GHA CI: Update Actions and PyTorch
1 parent 8f6e2a8 commit a87a42b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/msbuild.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ env:
1818
BUILD_CONFIGURATION: Release
1919

2020
# Python version to embed.
21-
PYTHON_MINOR: 8
22-
PYTHON_PATCH: 19
21+
PYTHON_MINOR: 11
22+
PYTHON_PATCH: 14
2323
# Python version to use for building.
24-
PYTHON_PATCH_SYS: 10
24+
PYTHON_PATCH_SYS: 9
2525

2626
permissions:
2727
contents: read
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: Checkout Repo
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v5
3636

3737
- name: Cache Commit SHA
3838
id: vars
@@ -41,7 +41,7 @@ jobs:
4141
# run: echo ${{steps.vars.outputs.sha_short}}
4242

4343
- name: Add Python to PATH
44-
uses: actions/setup-python@v5
44+
uses: actions/setup-python@v6
4545
with:
4646
python-version: 3.${{env.PYTHON_MINOR}}.${{env.PYTHON_PATCH_SYS}}
4747

@@ -61,8 +61,9 @@ jobs:
6161
- name: Embed PyTorch
6262
run: |
6363
cd .\pkgs\py-amp
64+
.\python.exe -m pip uninstall torch torchvision torchaudio
6465
.\python.exe -m pip install numpy==1.19.3
65-
.\python.exe -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
66+
.\python.exe -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu130
6667
.\python.exe -m pip install opencv-python sk-video imageio
6768
- name: NuGet Restore
6869
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

0 commit comments

Comments
 (0)