|
77 | 77 | run: |
|
78 | 78 | pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython
|
79 | 79 | - uses: ./.github/meson_actions
|
80 |
| - |
81 |
| - # TODO pypy: uncomment when pypy3.11 becomes available |
| 80 | + |
| 81 | + # TODO pypy: uncomment when pypy3.11 becomes available |
82 | 82 | #pypy:
|
83 | 83 | #needs: [smoke_test]
|
84 | 84 | #runs-on: ubuntu-latest
|
@@ -171,80 +171,35 @@ jobs:
|
171 | 171 | if: github.repository == 'numpy/numpy'
|
172 | 172 | runs-on: ubuntu-22.04-arm
|
173 | 173 | steps:
|
174 |
| - # PR handling |
175 | 174 | - name: Checkout for PR
|
176 | 175 | if: github.event_name == 'pull_request'
|
177 |
| - uses: actions/checkout@v4 |
178 |
| - with: |
179 |
| - submodules: recursive |
180 |
| - fetch-depth: 0 |
181 |
| - ref: ${{ github.event.pull_request.head.sha }} |
182 |
| - |
183 |
| - - name: Configure Git for PR |
184 |
| - if: github.event_name == 'pull_request' |
185 |
| - run: | |
186 |
| - git config --global user.email "you@example.com" |
187 |
| - git config --global user.name "GitHub Actions Bot" |
188 |
| - git fetch origin ${{ github.base_ref }} |
189 |
| - git checkout ${{ github.base_ref }} |
190 |
| - git merge --no-commit ${{ github.event.pull_request.head.sha }} |
191 |
| - git submodule update --init --recursive |
192 |
| -
|
193 |
| - # Regular checkout for non-PR builds |
194 |
| - - name: Checkout for non-PR |
195 |
| - if: github.event_name != 'pull_request' |
196 |
| - uses: actions/checkout@v4 |
| 176 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
197 | 177 | with:
|
198 | 178 | submodules: recursive
|
199 |
| - fetch-depth: 0 |
200 |
| - |
201 |
| - # Setup ccache using Cirrus CI approach |
202 |
| - - name: Setup ccache directory |
203 |
| - run: | |
204 |
| - mkdir -p .ccache |
205 |
| -
|
206 |
| - - uses: actions/cache@v4 |
207 |
| - with: |
208 |
| - path: .ccache |
209 |
| - key: ccache-linux_aarch64-${{ github.sha }} |
210 |
| - restore-keys: | |
211 |
| - ccache-linux_aarch64- |
212 |
| -
|
213 |
| - # Install system dependencies |
214 |
| - - name: Install system dependencies |
215 |
| - run: | |
216 |
| - sudo apt-get update |
217 |
| - sudo apt-get install -y --no-install-recommends \ |
218 |
| - software-properties-common \ |
219 |
| - gcc g++ gfortran pkg-config ccache \ |
220 |
| - libopenblas-dev libatlas-base-dev liblapack-dev |
221 |
| -
|
222 |
| - sudo /usr/sbin/update-ccache-symlinks |
223 |
| - export PATH=/usr/lib/ccache:$PATH |
224 |
| - echo "PATH=$PATH" >> $GITHUB_ENV |
225 |
| - echo "CCACHE_DIR=${{ github.workspace }}/.ccache" >> $GITHUB_ENV |
| 179 | + fetch-tags: true |
| 180 | + persist-credentials: false |
226 | 181 |
|
227 |
| - # Setup Python |
228 |
| - - uses: actions/setup-python@v5 |
| 182 | + - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 |
229 | 183 | with:
|
230 | 184 | python-version: '3.11'
|
231 | 185 |
|
232 |
| - # Install Python dependencies |
233 | 186 | - name: Install Python dependencies
|
234 | 187 | run: |
|
235 | 188 | python -m pip install -r requirements/build_requirements.txt
|
236 | 189 | python -m pip install -r requirements/test_requirements.txt
|
| 190 | + python -m pip install -r requirements/ci32_requirements.txt |
| 191 | + mkdir -p ./.openblas |
| 192 | + python -c"import scipy_openblas32 as ob32; print(ob32.get_pkg_config())" > ./.openblas/scipy-openblas.pc |
237 | 193 |
|
238 |
| - # Build |
239 | 194 | - name: Build
|
| 195 | + env: |
| 196 | + PKG_CONFIG_PATH: ${{ github.workspace }}/.openblas |
240 | 197 | run: |
|
241 | 198 | spin build -- -Dallow-noblas=true
|
242 | 199 |
|
243 |
| - # Test |
244 | 200 | - name: Test
|
245 | 201 | run: |
|
246 | 202 | spin test -j2 -- --timeout=600 --durations=10
|
247 |
| - ccache -s |
248 | 203 |
|
249 | 204 | # Meson Log on failure
|
250 | 205 | - name: Meson Log
|
|
0 commit comments