File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1122,6 +1122,9 @@ jobs:
1122
1122
}
1123
1123
1124
1124
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 != '' }}
1125
1128
runs-on : macos-latest
1126
1129
needs : determine-tag
1127
1130
@@ -1135,23 +1138,17 @@ jobs:
1135
1138
1136
1139
- name : Generate CoreML model
1137
1140
run : |
1138
- python3 -m venv venv
1141
+ python3.11 -m venv venv
1139
1142
source venv/bin/activate
1140
1143
pip install ane_transformers openai-whisper coremltools
1141
1144
./models/generate-coreml-model.sh base.en
1142
1145
1143
1146
- name : Pack CoreML model
1144
1147
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 != '' }}
1148
1148
run : |
1149
1149
zip --symlinks -r whisper-${{ needs.determine-tag.outputs.tag_name }}-ggml-base.en-encoder.mlmodelc.zip models/ggml-base.en-encoder.mlmodelc
1150
1150
1151
1151
- 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 != '' }}
1155
1152
uses : actions/upload-artifact@v4
1156
1153
with :
1157
1154
path : whisper-${{ needs.determine-tag.outputs.tag_name }}-ggml-base.en-encoder.mlmodelc.zip
You can’t perform that action at this time.
0 commit comments