Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1b0515e

Browse filesBrowse files
authored
Update build-wheels-cuda.yaml
1 parent a355c99 commit 1b0515e
Copy full SHA for 1b0515e

File tree

Expand file treeCollapse file tree

1 file changed

+13
-24
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-24
lines changed

‎.github/workflows/build-wheels-cuda.yaml

Copy file name to clipboardExpand all lines: .github/workflows/build-wheels-cuda.yaml
+13-24Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
jobs:
99
define_matrix:
1010
name: Define Build Matrix
11-
runs-on: windows-latest
11+
runs-on: ubuntu-latest
1212
outputs:
1313
matrix: ${{ steps.set-matrix.outputs.matrix }}
1414
defaults:
@@ -20,9 +20,9 @@ jobs:
2020
id: set-matrix
2121
run: |
2222
$matrix = @{
23-
'os' = @('windows-latest')
23+
'os' = @('ubuntu-latest', 'windows-2019')
2424
'pyver' = @("3.12")
25-
'cuda' = @("12.5")
25+
'cuda' = @("12.5.1")
2626
'releasetag' = @("basic")
2727
}
2828
@@ -43,33 +43,12 @@ jobs:
4343
AVXVER: ${{ matrix.releasetag }}
4444

4545
steps:
46-
- name: Debug Before Adding MSBuild
47-
run: |
48-
Write-Output "Current PATH:"
49-
Write-Output $env:PATH
50-
5146
- name: Add MSBuild to PATH
5247
if: runner.os == 'Windows'
5348
uses: microsoft/setup-msbuild@v2
5449
with:
5550
vs-version: '[16.11,16.12)'
5651

57-
- name: Debug After Adding MSBuild
58-
run: |
59-
Write-Output "Updated PATH:"
60-
Write-Output $env:PATH
61-
Get-ChildItem "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin"
62-
63-
- name: Explicitly Add MSBuild to PATH
64-
if: runner.os == 'Windows'
65-
run: |
66-
$msbuildPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin"
67-
if (-Not (Test-Path $msbuildPath)) {
68-
throw "MSBuild path not found: $msbuildPath"
69-
}
70-
$env:PATH += ";$msbuildPath"
71-
Write-Output "##[add-path]$env:PATH"
72-
7352
- uses: actions/checkout@v4
7453
with:
7554
submodules: "recursive"
@@ -135,13 +114,23 @@ jobs:
135114
$env:VERBOSE = '1'
136115
$env:CMAKE_ARGS = '-DGGML_CUDA=on -DCMAKE_CUDA_ARCHITECTURES=all'
137116
$env:CMAKE_ARGS = "-DGGML_CUDA_FORCE_MMQ=ON $env:CMAKE_ARGS"
117+
# if ($env:AVXVER -eq 'AVX') {
138118
$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DGGML_AVX2=off -DGGML_FMA=off -DGGML_F16C=off'
119+
# }
120+
# if ($env:AVXVER -eq 'AVX512') {
121+
# $env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DGGML_AVX512=on'
122+
# }
123+
# if ($env:AVXVER -eq 'basic') {
124+
# $env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DGGML_AVX=off -DGGML_AVX2=off -DGGML_FMA=off -DGGML_F16C=off'
125+
# }
139126
python -m build --wheel
127+
# write the build tag to the output
140128
Write-Output "CUDA_VERSION=$cudaVersion" >> $env:GITHUB_ENV
141129
142130
- uses: softprops/action-gh-release@v2
143131
with:
144132
files: dist/*
133+
# Set tag_name to <tag>-cu<cuda_version>
145134
tag_name: ${{ github.ref_name }}-cu${{ env.CUDA_VERSION }}
146135
env:
147136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.