-
Notifications
You must be signed in to change notification settings - Fork 19
131 lines (106 loc) · 3.66 KB
/
build_wheels.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Build SDKs
on:
push:
branches: ["dev/next-gen"]
pull_request:
branches: ["master"]
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
jobs:
build_manylinux2014_x86_64:
name: Compile manylinux2014_x86_64
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4
# Step 2: Synchronize and update submodules recursively
- name: Update submodules
run: |
git clone --recurse-submodules https://github.com/tunmx/inspireface-3rdparty.git 3rdparty
# Step 3: Set up Docker Compose
- name: Set up Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
# Step 4: Execute the docker-compose command
- name: Execute Docker Compose
run: |
docker-compose up build-manylinux2014-x86
# Step 5: Upload to PyPI
- name: Upload to PyPI
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload python/dist/* -u __token__ -p $PYPI_API_TOKEN
build_macos_arm64:
name: Compile MacOS-arm64
runs-on: macos-14
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4
# Step 2: Setting up the Python environment
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Step 3: Synchronize and update submodules
- name: Update submodules
run: |
git clone --recurse-submodules https://github.com/tunmx/inspireface-3rdparty.git 3rdparty
# Step 4: Install necessary dependencies for building the CMake project
- name: Install Dependencies
run: |
brew install cmake
# Step 5: Build the SDK
- name: Start Building the InspireFace-Linux-x86
run: |
bash command/build_wheel_macos_arm64.sh
ls python/dist
# Step 6: Upload to PyPI
- name: Upload to PyPI
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload python/dist/* -u __token__ -p $PYPI_API_TOKEN
build_macos_x86_64:
name: Compile MacOS-x86_64
runs-on: macos-13
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4
# Step 2: Setting up the Python environment
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Step 3: Synchronize and update submodules
- name: Update submodules
run: |
git clone --recurse-submodules https://github.com/tunmx/inspireface-3rdparty.git 3rdparty
# Step 4: Install necessary dependencies for building the CMake project
- name: Install Dependencies
run: |
brew install cmake
# Step 5: Build the SDK
- name: Start Building the InspireFace-Linux-x86
run: |
bash command/build_wheel_macos_x86.sh
ls python/dist
# Step 6: Upload to PyPI
- name: Upload to PyPI
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload python/dist/* -u __token__ -p $PYPI_API_TOKEN