Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0e90e6

Browse filesBrowse files
committed
CI: Use mingw64 [winci f2py]
[skip circle] [skip linux] [skip nixblas] [skip sanitizer] [skip musl] [skip qemu] [skip simd] [skip macos] [skip mypy] [skip wingha] [wasm skip] [codeql skip] [skip azp] [skip cirrus]
1 parent 2d71dcb commit f0e90e6
Copy full SHA for f0e90e6

File tree

1 file changed

+25
-12
lines changed
Filter options

1 file changed

+25
-12
lines changed

‎.github/workflows/f2py_windows.yml

Copy file name to clipboardExpand all lines: .github/workflows/f2py_windows.yml
+25-12Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,32 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
jobs:
21-
get_commit_message:
22-
name: Get commit message
21+
get_commit_tags:
22+
name: Get commit tags
2323
runs-on: ubuntu-latest
24+
# To enable this workflow on a fork, comment out:
2425
if: "github.repository == 'numpy/numpy'"
2526
outputs:
2627
message: ${{ steps.commit_message.outputs.message }}
2728
steps:
2829
- name: Checkout project
2930
uses: actions/checkout@v4
30-
# Gets the correct commit message for pull request
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
3333
- name: Get commit message
3434
id: commit_message
3535
run: |
3636
set -xe
37-
COMMIT_MSG=$(git log --no-merges -1 --oneline)
38-
echo "message=$COMMIT_MSG" >> $GITHUB_OUTPUT
37+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
38+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
3939
echo github.ref ${{ github.ref }}
40-
4140
test_f2py_rtools:
4241
name: cp311 (meson) f2py rtools
4342
runs-on: windows-2019
44-
needs: get_commit_message
43+
needs: get_commit_tags
4544
if: >-
46-
contains(needs.get_commit_message.outputs.message, '[winci f2py]') ||
45+
contains(needs.get_commit_tags.outputs.message, '[winci f2py]') ||
46+
contains(needs.get_commit_tags.outputs.message, '[f2py winci]') ||
4747
github.event_name == 'schedule' ||
4848
github.event_name == 'workflow_dispatch' ||
4949
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ( ! endsWith(github.ref, 'dev0')))
@@ -59,19 +59,32 @@ jobs:
5959
architecture: 'x64'
6060
cache: 'pip'
6161
cache-dependency-path: 'environment.yml'
62+
- name: Setup Cache for Rtools
63+
id: cache-rtools
64+
uses: actions/cache@v3
65+
with:
66+
path: C:\rtools43
67+
key: ${{ runner.os }}-rtools43-${{ hashFiles('**/rtools43-cache-key') }}
68+
restore-keys: |
69+
${{ runner.os }}-rtools43-
6270
# NumPy needs min GCC 8.2 so rtools >= 4.3
71+
# 4.4.6104 is already present on windows-2019
6372
# RTools Ver <-> GCC Ver
6473
# RTools 4.0 <-> GCC 8
6574
# RTools 4.3 <-> GCC 12
6675
# RTools 4.4 <-> GCC 13
67-
- name: Install rtools (mingw-w64)
76+
- name: Install rtools (mingw-w64) if not cached
77+
if: steps.cache-rtools.outputs.cache-hit != 'true'
6878
run: |
69-
choco install rtools -y --no-progress --force --version=4.4.6104
79+
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
7080
choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
81+
choco install rtools -y --no-progress --force --version=4.3.5550
82+
echo "c:\rtools43\mingw64\bin;" >> $env:GITHUB_PATH
7183
- name: pip-packages
7284
run: |
7385
python -m pip install -r requirements/f2pyCI_requirements.txt
7486
- name: Build and test # Fastest build, no BLAS or SIMD
7587
run: |
76-
spin build -j2 -- -Dallow-noblas=true -Dcpu-baseline=none -Dcpu-dispatch=none
77-
spin test -t numpy.f2py -m full -- -vvvvvv
88+
$env:PATH="C:\\rtools43\\mingw64\\bin;$env:PATH"
89+
python -mspin build -j2 -- -Dallow-noblas=true -Dcpu-baseline=none -Dcpu-dispatch=none
90+
python -mspin test -t numpy.f2py -m full -- -vvvvvv

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.