Skip to content

Commit 093c652

Browse files
authored
Merge pull request #379 from doringeman/skip-cann
fix(ci): make CANN build conditional
2 parents 9b556b8 + 8295e37 commit 093c652

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ on:
2424
required: false
2525
type: string
2626
default: "0.11.0"
27-
# This can be removed once we have llama.cpp built for MUSA.
28-
buildMusa:
29-
description: 'Build MUSA image'
27+
# This can be removed once we have llama.cpp built for MUSA and CANN.
28+
buildMusaCann:
29+
description: 'Build MUSA and CANN images'
3030
required: false
3131
type: boolean
3232
default: false
@@ -88,6 +88,12 @@ jobs:
8888
echo "docker/model-runner:latest-musa" >> "$GITHUB_OUTPUT"
8989
fi
9090
echo 'EOF' >> "$GITHUB_OUTPUT"
91+
echo "cann<<EOF" >> "$GITHUB_OUTPUT"
92+
echo "docker/model-runner:${{ inputs.releaseTag }}-cann" >> "$GITHUB_OUTPUT"
93+
if [ "${{ inputs.pushLatest }}" == "true" ]; then
94+
echo "docker/model-runner:latest-cann" >> "$GITHUB_OUTPUT"
95+
fi
96+
echo 'EOF' >> "$GITHUB_OUTPUT"
9197
9298
- name: Log in to DockerHub
9399
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
@@ -165,7 +171,7 @@ jobs:
165171
tags: ${{ steps.tags.outputs.rocm }}
166172

167173
- name: Build MUSA image
168-
if: ${{ inputs.buildMusa }}
174+
if: ${{ inputs.buildMusaCann }}
169175
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
170176
with:
171177
file: Dockerfile
@@ -181,6 +187,7 @@ jobs:
181187
tags: ${{ steps.tags.outputs.musa }}
182188

183189
- name: Build CANN image
190+
if: ${{ inputs.buildMusaCann }}
184191
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
185192
with:
186193
file: Dockerfile

0 commit comments

Comments
 (0)