@@ -14,8 +14,8 @@ name: Wheel builder
14
14
15
15
on :
16
16
schedule :
17
- # 3:27 UTC every day
18
- - cron : " 27 3 * * *"
17
+ # 8:50 UTC every day
18
+ - cron : " 50 8 * * *"
19
19
push :
20
20
pull_request :
21
21
types : [labeled, opened, synchronize, reopened]
35
35
build_sdist :
36
36
name : Build sdist
37
37
if : >-
38
- (github.event_name == 'schedule' && github.repository_owner == 'pandas-dev' ) ||
38
+ (github.event_name == 'schedule') ||
39
39
github.event_name == 'workflow_dispatch' ||
40
40
(github.event_name == 'pull_request' &&
41
41
contains(github.event.pull_request.labels.*.name, 'Build')) ||
67
67
name : sdist
68
68
path : ./dist/*
69
69
70
+ - name : Sanity check sdist files
71
+ run : |
72
+ ls ./dist
73
+
70
74
- name : Output sdist name
71
75
id : save-path
72
76
shell : bash -el {0}
76
80
needs : build_sdist
77
81
name : Build wheel for ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
78
82
if : >-
79
- (github.event_name == 'schedule' && github.repository_owner == 'pandas-dev' ) ||
83
+ (github.event_name == 'schedule') ||
80
84
github.event_name == 'workflow_dispatch' ||
81
85
(github.event_name == 'pull_request' &&
82
86
contains(github.event.pull_request.labels.*.name, 'Build')) ||
@@ -111,45 +115,28 @@ jobs:
111
115
# We need to build wheels from the sdist since the sdist
112
116
# removes unnecessary files from the release
113
117
- name : Download sdist (not macOS)
114
- if : ${{ matrix.buildplat[1] != 'macosx_*' }}
118
+ # if: ${{ matrix.buildplat[1] != 'macosx_*' }}
115
119
uses : actions/download-artifact@v3
116
120
with :
117
121
name : sdist
118
122
path : ./dist
119
123
120
- - name : Set up Python (macOS)
121
- if : ${{ matrix.buildplat[1] == 'macosx_*' }}
122
- uses : actions/setup-python@v4
123
- with :
124
- python-version : ' 3.11'
125
-
126
- # Work around for https://github.com/actions/runner-images/issues/2619?
127
- # Empty disk and memory cache
128
- - name : Purge on macOS
129
- if : ${{ matrix.buildplat[1] == 'macosx_*' }}
130
- run : |
131
- sudo /usr/sbin/purge
124
+ - name : Output sdist name (macOS)
125
+ id : save-path
126
+ shell : bash -el {0}
127
+ run : echo "sdist_name=$(ls ./dist)" >> "$GITHUB_ENV"
132
128
133
129
# Python version used to build sdist doesn't matter
134
130
# wheel will be built from sdist with the correct version
135
- - name : Build sdist (macOS)
131
+ - name : Unzip sdist (macOS)
136
132
if : ${{ matrix.buildplat[1] == 'macosx_*' }}
137
133
run : |
138
- python -m pip install build
139
- python -m build --sdist
134
+ tar -xzf ./dist/${{ env.sdist_name }} -C ./dist
140
135
141
136
- name : Output sdist name (macOS)
142
- id : save-path
137
+ id : save-path2
143
138
shell : bash -el {0}
144
- run : echo "sdist_name=$(ls ./dist)" >> "$GITHUB_ENV"
145
-
146
- # Work around for https://github.com/actions/runner-images/issues/2619?
147
- # Empty disk and memory cache
148
- # Again for good luck :)
149
- - name : Purge on macOS again
150
- if : ${{ matrix.buildplat[1] == 'macosx_*' }}
151
- run : |
152
- sudo /usr/sbin/purge
139
+ run : echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
153
140
154
141
- name : Build wheels
155
142
0 commit comments