@@ -46,15 +46,13 @@ concurrency:
46
46
cancel-in-progress : true
47
47
48
48
jobs :
49
- # TODO: https://github.com/facebookincubator/velox/issues/9014
50
- if : false
51
49
build_wheels :
52
50
name : Build wheels on ${{ matrix.os }}
53
51
runs-on : ${{ matrix.os }}
54
52
strategy :
55
53
fail-fast : false
56
54
matrix :
57
- os : [ubuntu-22.04 ]
55
+ os : [8-core-ubuntu ]
58
56
steps :
59
57
- uses : actions/checkout@v3
60
58
with :
92
90
93
91
- run : mkdir -p ccache
94
92
- name : " Restore ccache"
93
+ if : false
95
94
uses : actions/cache/restore@v3
96
95
id : restore-cache
97
96
with :
@@ -101,57 +100,48 @@ jobs:
101
100
ccache-wheels-${{ matrix.os }}-
102
101
103
102
- name : Install macOS dependencies
104
- if : matrix.os == 'macos-11'
103
+ if : startsWith( matrix.os, 'macos')
105
104
run : |
106
- echo "OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1/" >> $GITHUB_ENV
107
- bash scripts/setup-macos.sh &&
108
- bash scripts/setup-macos.sh install_folly
105
+ export INSTALL_PREFIX="$GITHUB_WORKSPACE/dependencies"
106
+ echo "CMAKE_PREFIX_PATH=$INSTALL_PREFIX" >> $GITHUB_ENV
107
+ bash scripts/setup-macos.sh
109
108
110
109
- name : " Create sdist"
111
- if : matrix.os == 'ubuntu-22.04 '
110
+ if : matrix.os == '8-core-ubuntu '
112
111
env :
113
112
BUILD_VERSION : " ${{ inputs.version || steps.version.outputs.build_version }}"
114
113
run : |
115
114
python setup.py sdist --dist-dir wheelhouse
116
115
117
116
- name : Build wheels
118
- uses : pypa/cibuildwheel@v2.22 .0
117
+ uses : pypa/cibuildwheel@v2.23 .0
119
118
env :
120
119
# required for preadv/pwritev
121
120
MACOSX_DEPLOYMENT_TARGET : " 11.0"
122
121
CIBW_ARCHS : " x86_64"
123
- # On PRs only build for Python 3.7
124
- CIBW_BUILD : ${{ github.event_name == 'pull_request' && 'cp37 -*' || 'cp3 *' }}
122
+ # Only build for 3.12 for now
123
+ CIBW_BUILD : ${{ github.event_name == 'pull_request' && 'cp312 -*' || 'cp312- *' }}
125
124
CIBW_SKIP : " *musllinux* cp36-*"
126
- CIBW_MANYLINUX_X86_64_IMAGE : " ghcr.io/facebookincubator/velox-dev:torcharrow-avx"
127
- CIBW_BEFORE_ALL_LINUX : >
128
- mkdir -p /output &&
129
- cp -R /host${{ github.workspace }}/ccache /output/ccache &&
130
- ccache -s
131
- CIBW_ENVIRONMENT_PASS_LINUX : CCACHE_DIR BUILD_VERSION
125
+ CIBW_MANYLINUX_X86_64_IMAGE : " ghcr.io/facebookincubator/velox-dev:pyvelox"
126
+ CIBW_ENVIRONMENT_PASS_LINUX : " CCACHE_DIR BUILD_VERSION CMAKE_PREFIX_PATH"
132
127
CIBW_TEST_EXTRAS : " tests"
133
128
CIBW_TEST_COMMAND : " cd {project}/pyvelox && python -m unittest -v"
134
- CIBW_TEST_SKIP : " *macos* "
135
- CCACHE_DIR : " ${{ matrix.os != 'macos-11' && '/output' || github.workspace }}/ccache"
129
+ CIBW_TEST_SKIP : " *"
130
+ # CCACHE_DIR: "${{ matrix.os != 'macos-11' && '/output' || github.workspace }}/ccache"
136
131
BUILD_VERSION : " ${{ inputs.version || steps.version.outputs.build_version }}"
137
132
with :
138
133
output-dir : wheelhouse
139
134
140
- - name : " Move ccache to workspace"
141
- if : matrix.os != 'macos-11'
142
- run : |
143
- mkdir -p ccache
144
- cp -R ./wheelhouse/ccache/* ccache
145
-
146
135
- name : " Save ccache"
136
+ if : false
147
137
uses : actions/cache/save@v3
148
138
id : cache
149
139
with :
150
140
path : " ccache"
151
141
key : ccache-wheels-${{ matrix.os }}-${{ github.sha }}
152
142
153
143
- name : " Rename wheel compatibility tag"
154
- if : matrix.os == 'macos-11'
144
+ if : startsWith( matrix.os, 'macos')
155
145
run : |
156
146
brew install rename
157
147
cd wheelhouse
0 commit comments