@@ -8,7 +8,7 @@ permissions:
8
8
jobs :
9
9
define_matrix :
10
10
name : Define Build Matrix
11
- runs-on : windows -latest
11
+ runs-on : ubuntu -latest
12
12
outputs :
13
13
matrix : ${{ steps.set-matrix.outputs.matrix }}
14
14
defaults :
20
20
id : set-matrix
21
21
run : |
22
22
$matrix = @{
23
- 'os' = @('windows -latest')
23
+ 'os' = @('ubuntu -latest', 'windows-2019 ')
24
24
'pyver' = @("3.12")
25
- 'cuda' = @("12.5")
25
+ 'cuda' = @("12.5.1 ")
26
26
'releasetag' = @("basic")
27
27
}
28
28
@@ -43,33 +43,12 @@ jobs:
43
43
AVXVER : ${{ matrix.releasetag }}
44
44
45
45
steps :
46
- - name : Debug Before Adding MSBuild
47
- run : |
48
- Write-Output "Current PATH:"
49
- Write-Output $env:PATH
50
-
51
46
- name : Add MSBuild to PATH
52
47
if : runner.os == 'Windows'
53
48
uses : microsoft/setup-msbuild@v2
54
49
with :
55
50
vs-version : ' [16.11,16.12)'
56
51
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
-
73
52
- uses : actions/checkout@v4
74
53
with :
75
54
submodules : " recursive"
@@ -135,13 +114,23 @@ jobs:
135
114
$env:VERBOSE = '1'
136
115
$env:CMAKE_ARGS = '-DGGML_CUDA=on -DCMAKE_CUDA_ARCHITECTURES=all'
137
116
$env:CMAKE_ARGS = "-DGGML_CUDA_FORCE_MMQ=ON $env:CMAKE_ARGS"
117
+ # if ($env:AVXVER -eq 'AVX') {
138
118
$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
+ # }
139
126
python -m build --wheel
127
+ # write the build tag to the output
140
128
Write-Output "CUDA_VERSION=$cudaVersion" >> $env:GITHUB_ENV
141
129
142
130
- uses : softprops/action-gh-release@v2
143
131
with :
144
132
files : dist/*
133
+ # Set tag_name to <tag>-cu<cuda_version>
145
134
tag_name : ${{ github.ref_name }}-cu${{ env.CUDA_VERSION }}
146
135
env :
147
136
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments