Skip to content

Commit 5818a26

Browse files
committed
fix(workflow): update conditional checks for linux-musl
1 parent 7907bd1 commit 5818a26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
steps:
8888

8989
- name: linux-musl x86_64 install dependencies
90-
if: matrix.name == 'linux-musl' && matrix.arch == 'x86_64'
90+
if: contains(matrix.name, 'linux-musl') && matrix.arch == 'x86_64'
9191
run: apk update && apk add --no-cache git gcc make sqlite musl-dev linux-headers
9292

9393
- uses: actions/[email protected]
@@ -147,7 +147,7 @@ jobs:
147147
run: brew link sqlite --force
148148

149149
- name: linux-musl arm64 setup container
150-
if: matrix.name == 'linux-musl' && matrix.arch == 'arm64'
150+
if: contains(matrix.name, 'linux-musl') && matrix.arch == 'arm64'
151151
run: |
152152
docker run -d --name alpine \
153153
--platform linux/arm64 \
@@ -231,7 +231,7 @@ jobs:
231231

232232
- name: unix build llama.cpp
233233
if: matrix.os != 'windows-2022' && steps.cache-llama.outputs.cache-hit != 'true'
234-
run: ${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make build/llama.cpp.stamp ${{ matrix.make && matrix.make || ''}}
234+
run: ${{ contains(matrix.name, 'linux-musl') && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make build/llama.cpp.stamp ${{ matrix.make && matrix.make || ''}}
235235

236236
- name: windows build whisper.cpp
237237
if: matrix.os == 'windows-2022' && steps.cache-whisper.outputs.cache-hit != 'true'
@@ -242,7 +242,7 @@ jobs:
242242

243243
- name: unix build whisper.cpp
244244
if: matrix.os != 'windows-2022' && steps.cache-whisper.outputs.cache-hit != 'true'
245-
run: ${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make build/whisper.cpp.stamp ${{ matrix.make && matrix.make || ''}}
245+
run: ${{ contains(matrix.name, 'linux-musl') && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make build/whisper.cpp.stamp ${{ matrix.make && matrix.make || ''}}
246246

247247
- name: windows build miniaudio
248248
if: matrix.os == 'windows-2022' && steps.cache-miniaudio.outputs.cache-hit != 'true'
@@ -251,7 +251,7 @@ jobs:
251251

252252
- name: unix build miniaudio
253253
if: matrix.os != 'windows-2022' && steps.cache-miniaudio.outputs.cache-hit != 'true'
254-
run: ${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make build/miniaudio.stamp ${{ matrix.make && matrix.make || ''}}
254+
run: ${{ contains(matrix.name, 'linux-musl') && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make build/miniaudio.stamp ${{ matrix.make && matrix.make || ''}}
255255

256256
- name: windows build sqlite-ai
257257
if: matrix.os == 'windows-2022'
@@ -262,7 +262,7 @@ jobs:
262262

263263
- name: unix build sqlite-ai
264264
if: matrix.os != 'windows-2022'
265-
run: ${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make extension ${{ matrix.make && matrix.make || ''}}
265+
run: ${{ contains(matrix.name, 'linux-musl') && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make extension ${{ matrix.make && matrix.make || ''}}
266266

267267
- name: create keychain for codesign
268268
if: matrix.os == 'macos-15'
@@ -346,7 +346,7 @@ jobs:
346346

347347
- name: unix test sqlite-ai
348348
if: contains(matrix.name, 'linux') || matrix.name == 'macos'
349-
run: ${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make test ${{ matrix.make && matrix.make || ''}}
349+
run: ${{ contains(matrix.name, 'linux-musl') && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make test ${{ matrix.make && matrix.make || ''}}
350350

351351
- uses: actions/[email protected]
352352
if: always()

0 commit comments

Comments
 (0)