-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 909 Bytes
/
Copy pathane-generation.yml
File metadata and controls
38 lines (31 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: ANE Model Generation
on:
push:
branches: [macos-buildhwx]
workflow_dispatch: # Allows manual triggering from the Actions tab
jobs:
generate-and-convert:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Dependencies
run: |
pip install numpy coremltools
- name: Generate MLModel
run: |
python3 gen_mlmodel.py
- name: Run coreml2hwx
run: |
git clone https://github.com/freedomtan/coreml_to_ane_hwx && cd coreml_to_ane_hwx
make
chmod +x ./coreml2hwx
./coreml2hwx ../test.mlmodel
- name: Upload HWX Artifact
uses: actions/upload-artifact@v4
with:
name: hwx-model
path: /tmp/hwx_output/test/model.hwx