|
12 | 12 | description: 'Create new release'
|
13 | 13 | required: true
|
14 | 14 | type: boolean
|
15 |
| - custom_tag: |
| 15 | + pre_release_tag: |
16 | 16 | description: 'Pre-release tag name'
|
17 | 17 | required: false
|
18 | 18 | type: string
|
|
53 | 53 | run: |
|
54 | 54 | BUILD_NUMBER=$(git rev-list --count HEAD)
|
55 | 55 | 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 }}" |
57 | 57 |
|
58 | 58 | echo "Raw values:"
|
59 | 59 | echo "BUILD_NUMBER: $BUILD_NUMBER"
|
@@ -194,11 +194,6 @@ jobs:
|
194 | 194 | -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
|
195 | 195 | cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
|
196 | 196 |
|
197 |
| - - name: xcodebuild for swift package |
198 |
| - id: xcodebuild |
199 |
| - run: | |
200 |
| - ./build-xcframework.sh |
201 |
| -
|
202 | 197 |
|
203 | 198 | # freeBSD-latest:
|
204 | 199 | # runs-on: macos-12
|
@@ -787,16 +782,20 @@ jobs:
|
787 | 782 |
|
788 | 783 | - name: Pack artifacts
|
789 | 784 | 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 != '' }} |
791 | 788 | 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 |
793 | 790 |
|
794 | 791 | - 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 != '' }} |
796 | 795 | uses: actions/upload-artifact@v4
|
797 | 796 | 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 |
800 | 799 |
|
801 | 800 | android:
|
802 | 801 | if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
|
@@ -914,7 +913,9 @@ jobs:
|
914 | 913 | ./build/bin/quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
|
915 | 914 |
|
916 | 915 | 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 != '' }} |
918 | 919 |
|
919 | 920 | runs-on: ubuntu-latest
|
920 | 921 |
|
@@ -953,7 +954,7 @@ jobs:
|
953 | 954 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
954 | 955 | with:
|
955 | 956 | tag_name: ${{ needs.determine-tag.outputs.tag_name }}
|
956 |
| - prerelease: ${{ github.event.inputs.custom_tag != '' }} |
| 957 | + prerelease: ${{ github.event.inputs.pre_release_tag != '' }} |
957 | 958 |
|
958 | 959 | - name: Upload release
|
959 | 960 | id: upload_release
|
|
0 commit comments