@@ -14,8 +14,8 @@ name: Wheel builder
1414
1515on :
1616 schedule :
17- # 3:27 UTC every day
18- - cron : " 27 3 * * *"
17+ # 8:50 UTC every day
18+ - cron : " 50 8 * * *"
1919 push :
2020 pull_request :
2121 types : [labeled, opened, synchronize, reopened]
3535 build_sdist :
3636 name : Build sdist
3737 if : >-
38- (github.event_name == 'schedule' && github.repository_owner == 'pandas-dev' ) ||
38+ (github.event_name == 'schedule') ||
3939 github.event_name == 'workflow_dispatch' ||
4040 (github.event_name == 'pull_request' &&
4141 contains(github.event.pull_request.labels.*.name, 'Build')) ||
6767 name : sdist
6868 path : ./dist/*
6969
70+ - name : Sanity check sdist files
71+ run : |
72+ ls ./dist
73+
7074 - name : Output sdist name
7175 id : save-path
7276 shell : bash -el {0}
7680 needs : build_sdist
7781 name : Build wheel for ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
7882 if : >-
79- (github.event_name == 'schedule' && github.repository_owner == 'pandas-dev' ) ||
83+ (github.event_name == 'schedule') ||
8084 github.event_name == 'workflow_dispatch' ||
8185 (github.event_name == 'pull_request' &&
8286 contains(github.event.pull_request.labels.*.name, 'Build')) ||
@@ -111,45 +115,28 @@ jobs:
111115 # We need to build wheels from the sdist since the sdist
112116 # removes unnecessary files from the release
113117 - name : Download sdist (not macOS)
114- if : ${{ matrix.buildplat[1] != 'macosx_*' }}
118+ # if: ${{ matrix.buildplat[1] != 'macosx_*' }}
115119 uses : actions/download-artifact@v3
116120 with :
117121 name : sdist
118122 path : ./dist
119123
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"
132128
133129 # Python version used to build sdist doesn't matter
134130 # wheel will be built from sdist with the correct version
135- - name : Build sdist (macOS)
131+ - name : Unzip sdist (macOS)
136132 if : ${{ matrix.buildplat[1] == 'macosx_*' }}
137133 run : |
138- python -m pip install build
139- python -m build --sdist
134+ tar -xzf ./dist/${{ env.sdist_name }} -C ./dist
140135
141136 - name : Output sdist name (macOS)
142- id : save-path
137+ id : save-path2
143138 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"
153140
154141 - name : Build wheels
155142
0 commit comments