Skip to content

Commit 025cf6c

Browse files
committed
ci: fix artifact name in build.yml
1 parent af3b6d5 commit 025cf6c

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
description: 'Create new release'
1313
required: true
1414
type: boolean
15-
custom_tag:
15+
pre_release_tag:
1616
description: 'Pre-release tag name'
1717
required: false
1818
type: string
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
BUILD_NUMBER=$(git rev-list --count HEAD)
5555
SHORT_HASH=$(git rev-parse --short=7 HEAD)
56-
CUSTOM_TAG="${{ github.event.inputs.custom_tag }}"
56+
CUSTOM_TAG="${{ github.event.inputs.pre_release_tag }}"
5757
5858
echo "Raw values:"
5959
echo "BUILD_NUMBER: $BUILD_NUMBER"
@@ -194,11 +194,6 @@ jobs:
194194
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
195195
cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
196196
197-
- name: xcodebuild for swift package
198-
id: xcodebuild
199-
run: |
200-
./build-xcframework.sh
201-
202197
203198
# freeBSD-latest:
204199
# runs-on: macos-12
@@ -787,16 +782,20 @@ jobs:
787782

788783
- name: Pack artifacts
789784
id: pack_artifacts
790-
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' || github.event.inputs.custom_tag != '' }}
785+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
786+
github.event.inputs.create_release == 'true' ||
787+
github.event.inputs.pre_release_tag != '' }}
791788
run: |
792-
zip --symlinks -r llama-${{ needs.determine-tag.outputs.tag_name }}-xcframework.zip build-apple/llama.xcframework
789+
zip --symlinks -r whisper-${{ needs.determine-tag.outputs.tag_name }}-xcframework.zip build-apple/whisper.xcframework
793790
794791
- name: Upload artifacts
795-
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' || github.event.inputs.custom_tag != '' }}
792+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
793+
github.event.inputs.create_release == 'true' ||
794+
github.event.inputs.pre_release_tag != '' }}
796795
uses: actions/upload-artifact@v4
797796
with:
798-
path: llama-${{ needs.determine-tag.outputs.tag_name }}-xcframework.zip
799-
name: llama-${{ needs.determine-tag.outputs.tag_name }}-xcframework
797+
path: whisper-${{ needs.determine-tag.outputs.tag_name }}-xcframework.zip
798+
name: whisper-${{ needs.determine-tag.outputs.tag_name }}-xcframework
800799

801800
android:
802801
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
@@ -914,7 +913,9 @@ jobs:
914913
./build/bin/quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
915914
916915
release:
917-
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' || github.event.inputs.custom_tag != '' }}
916+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
917+
github.event.inputs.create_release == 'true' ||
918+
github.event.inputs.pre_release_tag != '' }}
918919

919920
runs-on: ubuntu-latest
920921

@@ -953,7 +954,7 @@ jobs:
953954
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
954955
with:
955956
tag_name: ${{ needs.determine-tag.outputs.tag_name }}
956-
prerelease: ${{ github.event.inputs.custom_tag != '' }}
957+
prerelease: ${{ github.event.inputs.pre_release_tag != '' }}
957958

958959
- name: Upload release
959960
id: upload_release

0 commit comments

Comments
 (0)