|
12 | 12 | #-* |
13 | 13 | #-* |
14 | 14 | #Z* ------------------------------------------------------------------- |
15 | | -name: Build wheel files for all major operating systems |
| 15 | +name: Build Wheels |
16 | 16 |
|
17 | 17 | on: [push] |
18 | 18 |
|
@@ -131,54 +131,54 @@ jobs: |
131 | 131 | strategy: |
132 | 132 | fail-fast: false |
133 | 133 | runs-on: ubuntu-22.04 |
134 | | - steps: |
135 | | - - name: Checkout repository |
136 | | - uses: actions/checkout@v4 |
137 | | - with: |
138 | | - submodules: recursive |
139 | | - |
140 | | - - name: Install system dependencies |
141 | | - run: | |
142 | | - sudo apt-get update |
143 | | - sudo apt-get install git build-essential libxmu-dev libxi-dev libgl-dev libglew-dev libpng-dev libfreetype6-dev libxml2-dev libmsgpack-dev libglm-dev libnetcdf-dev linux-libc-dev autoconf perl |
144 | | -
|
145 | | - - name: Initialize vcpkg |
146 | | - run: | |
147 | | - git clone https://github.com/Microsoft/vcpkg.git vendor/vcpkg |
148 | | -
|
149 | | - - name: Setup Python 3.11 |
150 | | - uses: actions/setup-python@v5 |
151 | | - with: |
152 | | - python-version: "3.11" |
153 | | - |
154 | | - - name: Create virtual environment |
155 | | - run: | |
156 | | - python -m venv .venv |
157 | | - source .venv/bin/activate |
158 | | - python -m pip install wheel setuptools cibuildwheel |
159 | | - python -m pip install -r requirements.txt |
160 | | -
|
161 | | - - name: Bootstrap vcpkg |
162 | | - run: ${{ env.VCPKG_ROOT }}/bootstrap-vcpkg.sh -disableMetrics |
163 | | - |
164 | | - - name: Install vcpkg dependencies |
165 | | - run: | |
166 | | - ${{ env.VCPKG_ROOT }}/vcpkg install |
167 | | -
|
168 | | - - name: Last build environment setup steps |
169 | | - run: | |
170 | | - source .venv/bin/activate |
171 | | - python automations/my_automator.py setup dev-env |
172 | | -
|
173 | | - - name: Build C extension |
174 | | - run: | |
175 | | - source .venv/bin/activate |
176 | | - python automations/my_automator.py setup dev-env |
177 | | - cibuildwheel . |
178 | | -
|
179 | | - - name: Upload artifact |
180 | | - uses: actions/upload-artifact@v4 |
181 | | - with: |
182 | | - name: PyMOL-wheel-GNU-Linux-3.11 |
183 | | - path: ./wheelhouse/*.whl |
| 134 | + steps: |
| 135 | + - name: Checkout repository |
| 136 | + uses: actions/checkout@v4 |
| 137 | + with: |
| 138 | + submodules: recursive |
| 139 | + |
| 140 | + - name: Install system dependencies |
| 141 | + run: | |
| 142 | + sudo apt-get update |
| 143 | + sudo apt-get install git build-essential libxmu-dev libxi-dev libgl-dev libglew-dev libpng-dev libfreetype6-dev libxml2-dev libmsgpack-dev libglm-dev libnetcdf-dev linux-libc-dev autoconf perl |
| 144 | +
|
| 145 | + - name: Initialize vcpkg |
| 146 | + run: | |
| 147 | + git clone https://github.com/Microsoft/vcpkg.git vendor/vcpkg |
| 148 | +
|
| 149 | + - name: Setup Python 3.11 |
| 150 | + uses: actions/setup-python@v5 |
| 151 | + with: |
| 152 | + python-version: "3.11" |
| 153 | + |
| 154 | + - name: Create virtual environment |
| 155 | + run: | |
| 156 | + python -m venv .venv |
| 157 | + source .venv/bin/activate |
| 158 | + python -m pip install wheel setuptools cibuildwheel |
| 159 | + python -m pip install -r requirements.txt |
| 160 | +
|
| 161 | + - name: Bootstrap vcpkg |
| 162 | + run: ${{ env.VCPKG_ROOT }}/bootstrap-vcpkg.sh -disableMetrics |
| 163 | + |
| 164 | + - name: Install vcpkg dependencies |
| 165 | + run: | |
| 166 | + ${{ env.VCPKG_ROOT }}/vcpkg install |
| 167 | +
|
| 168 | + - name: Last build environment setup steps |
| 169 | + run: | |
| 170 | + source .venv/bin/activate |
| 171 | + python automations/my_automator.py setup dev-env |
| 172 | +
|
| 173 | + - name: Build C extension |
| 174 | + run: | |
| 175 | + source .venv/bin/activate |
| 176 | + python automations/my_automator.py setup dev-env |
| 177 | + cibuildwheel . |
| 178 | +
|
| 179 | + - name: Upload artifact |
| 180 | + uses: actions/upload-artifact@v4 |
| 181 | + with: |
| 182 | + name: PyMOL-wheel-GNU-Linux-3.11 |
| 183 | + path: ./wheelhouse/*.whl |
184 | 184 | # --- end |
0 commit comments