File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Just Works
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - release/*
8+ pull_request :
9+ workflow_dispatch :
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ configuration-matrix :
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ os :
21+ # Linux x86_64
22+ - ubuntu-latest
23+ # macOS arm64
24+ - macos-m1-stable
25+ python-version :
26+ - 3.10
27+ - 3.11
28+ - 3.12
29+ runs-on : ${{ matrix.os }}
30+ timeout-minutes : 60
31+ steps :
32+ - uses : actions/setup-python@v5
33+ with :
34+ python-version : ${{ matrix.python-version }}
35+ - uses : actions/checkout@v4
36+ - uses : Build wheel
37+ run : |
38+ python3 -m venv .setup-venv
39+ source .setup-venv/bin/activate
40+
41+ pip install -r requirements-dev.txt torch
42+ python3 setup.py bdist_wheel --dist-dir=/tmp/executorch_wheel
43+
44+ deactivate
45+ rm -rf .setup-venv
46+
47+ file_count=$(ls /tmp/executorch_wheel/*.whl 2>/dev/null | wc -l)
48+ if [[ "$file_count" -eq 1 ]]; then
49+ wheel_path=$(ls /tmp/executorch_wheel/*.whl)
50+ echo "EXECUTORCH_WHEEL=$wheel_path" >> $GITHUB_ENV
51+ else
52+ echo "Error: expected exactly one wheel file in the dist folder, found $file_count:"
53+ exit 1
54+ fi
55+ - name : Install wheel
56+ run : |
57+ python3 -m venv .test-venv
58+ source .test-venv/bin/activate
59+ pip install torch $EXECUTORCH_WHEEL
60+ - name : Test wheel
61+ run : |
62+ python3 build/packaging/smoke_test.py
You can’t perform that action at this time.
0 commit comments