Skip to content

Commit ecf0d5b

Browse files
authored
test
1 parent fa017b5 commit ecf0d5b

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

‎.github/workflows/build-vulkan.yml‎

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@ on:
2424
'ggml/src/ggml-vulkan/**'
2525
]
2626

27+
cache-mode: none
28+
permissions:
29+
contents: read
30+
2731
concurrency:
2832
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
2933
cancel-in-progress: true
3034

3135
env:
3236
GGML_NLOOP: 3
3337
GGML_N_THREADS: 1
38+
GGML_SCHED_DEBUG_REALLOC: 1
3439
LLAMA_ARG_LOG_COLORS: 1
3540
LLAMA_ARG_LOG_PREFIX: 1
3641
LLAMA_ARG_LOG_TIMESTAMPS: 1
@@ -55,7 +60,7 @@ jobs:
5560
- name: ccache
5661
uses: ggml-org/ccache-action@v1.2.24
5762
with:
58-
key: vulkan-ubuntu-24.04-arm
63+
restore: false
5964
variant: ccache
6065
save: false
6166

@@ -124,7 +129,7 @@ jobs:
124129
- name: ccache
125130
uses: ggml-org/ccache-action@v1.2.24
126131
with:
127-
key: vulkan-ubuntu-24.04-llvmpipe
132+
restore: false
128133
save: false
129134

130135
- name: ccache-buckets-restore
@@ -167,8 +172,22 @@ jobs:
167172
ctest -L main --verbose --timeout 900
168173
169174
windows:
175+
name: windows / ${{ matrix.arch }}
170176
runs-on: windows-2025
171177

178+
cache-mode: write
179+
permissions:
180+
actions: write
181+
contents: read
182+
183+
strategy:
184+
matrix:
185+
include:
186+
- build: 'X64'
187+
arch: 'x64'
188+
- build: 'ARM64'
189+
arch: 'arm64'
190+
172191
env:
173192
VULKAN_VERSION: 1.4.357.0
174193

@@ -180,15 +199,15 @@ jobs:
180199
- name: ccache
181200
uses: ggml-org/ccache-action@v1.2.24
182201
with:
183-
key: cpu-windows-2025-x64-vulkan
202+
key: cpu-windows-2025-${{ matrix.arch }}-vulkan
184203
variant: ccache
185204
evict-old-files: 1d
186205
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
187206

188207
- name: Install Vulkan SDK
189208
id: get_vulkan
190209
run: |
191-
curl.exe -o $env:RUNNER_TEMP/VulkanSDK-Installer.exe -L "https://sdk.lunarg.com/sdk/download/${env:VULKAN_VERSION}/windows/vulkansdk-windows-X64-${env:VULKAN_VERSION}.exe"
210+
curl.exe -o $env:RUNNER_TEMP/VulkanSDK-Installer.exe -L "https://sdk.lunarg.com/sdk/download/${env:VULKAN_VERSION}/windows/vulkansdk-windows-${{ matrix.build }}-${env:VULKAN_VERSION}.exe"
192211
& "$env:RUNNER_TEMP\VulkanSDK-Installer.exe" --accept-licenses --default-answer --confirm-command install
193212
Add-Content $env:GITHUB_ENV "VULKAN_SDK=C:\VulkanSDK\${env:VULKAN_VERSION}"
194213
Add-Content $env:GITHUB_PATH "C:\VulkanSDK\${env:VULKAN_VERSION}\bin"
@@ -202,7 +221,7 @@ jobs:
202221
id: cmake_build
203222
run: |
204223
cmake -S . -B build -G "Ninja Multi-Config" `
205-
-D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake `
224+
-D CMAKE_TOOLCHAIN_FILE=cmake/${{ matrix.arch }}-windows-llvm.cmake `
206225
-DCMAKE_BUILD_TYPE=Release `
207226
-DGGML_NATIVE=OFF `
208227
-DLLAMA_BUILD_SERVER=ON `
@@ -224,7 +243,7 @@ jobs:
224243
env:
225244
GH_TOKEN: ${{ github.token }}
226245
with:
227-
key: cpu-windows-2025-x64-vulkan
246+
key: cpu-windows-2025-${{ matrix.arch }}-vulkan
228247
older: 5m
229248
min: 1
230249
dry-run: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' }}

0 commit comments

Comments
 (0)