Skip to content

Commit f58681f

Browse files
committed
squash! use python3.11 for coreml model generation
1 parent cdcea8e commit f58681f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,9 @@ jobs:
11221122
}
11231123
11241124
coreml-base-en:
1125+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
1126+
github.event.inputs.create_release == 'true' ||
1127+
github.event.inputs.pre_release_tag != '' }}
11251128
runs-on: macos-latest
11261129
needs: determine-tag
11271130

@@ -1135,23 +1138,17 @@ jobs:
11351138
11361139
- name: Generate CoreML model
11371140
run: |
1138-
python3 -m venv venv
1141+
python3.11 -m venv venv
11391142
source venv/bin/activate
11401143
pip install ane_transformers openai-whisper coremltools
11411144
./models/generate-coreml-model.sh base.en
11421145
11431146
- name: Pack CoreML model
11441147
id: pack_artifacts
1145-
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
1146-
github.event.inputs.create_release == 'true' ||
1147-
github.event.inputs.pre_release_tag != '' }}
11481148
run: |
11491149
zip --symlinks -r whisper-${{ needs.determine-tag.outputs.tag_name }}-ggml-base.en-encoder.mlmodelc.zip models/ggml-base.en-encoder.mlmodelc
11501150
11511151
- name: Upload artifacts
1152-
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
1153-
github.event.inputs.create_release == 'true' ||
1154-
github.event.inputs.pre_release_tag != '' }}
11551152
uses: actions/upload-artifact@v4
11561153
with:
11571154
path: whisper-${{ needs.determine-tag.outputs.tag_name }}-ggml-base.en-encoder.mlmodelc.zip

0 commit comments

Comments
 (0)