Skip to content

Commit

Permalink
Little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrohanea committed Jan 11, 2025
1 parent f09f193 commit 4bbb72c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/windows-native-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ jobs:
id: install_ninja
run: |
choco install ninja
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2

- name: Run Build
run: |
Import-Module ./windows-scripts.ps1
Expand Down
16 changes: 2 additions & 14 deletions windows-scripts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,8 @@ function BuildWindows() {
"-DGGML_NATIVE=OFF",
"-DCMAKE_SYSTEM_NAME=Windows"
)

if ($Arch -eq "arm64") {
$options += "-DCMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-llvm.cmake"
}

if ($Arch -eq 'x64') {
$options += "-DCMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake"

}

if ($Arch -eq 'x86') {
$options += "-DCMAKE_TOOLCHAIN_FILE=cmake/x86-windows-llvm.cmake"

}

$options += "-DCMAKE_TOOLCHAIN_FILE=cmake/$Arch-windows-llvm.cmake"

$avxOptions = @("-DGGML_AVX=ON", "-DGGML_AVX2=ON", "-DGGML_FMA=ON", "-DGGML_F16C=ON")

Expand Down

0 comments on commit 4bbb72c

Please sign in to comment.