7272 CIBW_BUILD : " cp3*_x86_64"
7373 CIBW_SKIP : " cp36-* cp37-* *-musllinux_x86_64 cp310-macosx_x86_64"
7474 CIBW_ARCHS : " native"
75- CIBW_ENVIRONMENT : >
76- COMPILE_GO=True PATH=$PATH:/usr/local/go/bin
77- CIBW_BEFORE_ALL_LINUX : |
78- curl -o go.tar.gz https://dl.google.com/go/go1.18.2.linux-amd64.tar.gz
79- tar -C /usr/local -xzf go.tar.gz
80- go version
81- yum -y update &&
82- yum install -y epel-release || yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1).noarch.rpm &&
83- yum install -y https://apache.jfrog.io/artifactory/arrow/centos/$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)/apache-arrow-release-latest.rpm &&
84- yum install -y --enablerepo=epel arrow-devel # For C++
8575 CIBW_BEFORE_ALL_MACOS : |
8676 brew install apache-arrow
8777 brew install pkg-config
9080 # There's a `git restore` in here because `make install-go-ci-dependencies` is actually messing up go.mod & go.sum.
9181 CIBW_BEFORE_BUILD : |
9282 make install-protoc-dependencies
93- make install-go-proto-dependencies
94- make install-go-ci-dependencies
9583 git status
9684 git restore go.mod go.sum
9785 git restore sdk/python/feast/ui/yarn.lock
@@ -139,8 +127,6 @@ jobs:
139127 run : |
140128 pip install -U pip setuptools wheel twine
141129 make install-protoc-dependencies
142- make install-go-proto-dependencies
143- make install-go-ci-dependencies
144130 make build-ui
145131 git status
146132 git restore go.mod go.sum
@@ -203,9 +189,6 @@ jobs:
203189 with :
204190 python-version : ${{ matrix.python-version }}
205191 architecture : x64
206- - uses : actions/setup-go@v3
207- with :
208- go-version : ' >=1.17.0'
209192 - uses : actions/download-artifact@v2
210193 with :
211194 name : wheels
@@ -217,33 +200,6 @@ jobs:
217200 cd dist/
218201 pip install wheel
219202 for f in *.whl; do pip install $f || true; done
220- - name : Install apache-arrow on ubuntu
221- if : ${{ matrix.from-source && matrix.os == 'ubuntu-latest' }}
222- run : |
223- sudo apt update
224- sudo apt install -y -V ca-certificates lsb-release wget
225- wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
226- sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
227- sudo apt update
228- sudo apt install -y -V libarrow-dev
229- - name : Install apache-arrow on macos
230- if : ${{ matrix.from-source && matrix.os == 'macos-10.15' && matrix.python-version != '3.10' }}
231- run : |
232- brew install apache-arrow
233- brew install pkg-config
234- - name : Install dist with go
235- if : ${{ matrix.from-source && (matrix.python-version != '3.10' || matrix.os == 'ubuntu-latest')}}
236- env :
237- COMPILE_GO : " True"
238- run : |
239- pip install 'grpcio-tools==1.47.0' 'pybindgen==0.22.0'
240- go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26.0
241- go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0
242- pip install dist/*tar.gz
243- # py3.10 on MacOS does not work with Go so we have to install separately. Issue is tracked here: https://github.com/feast-dev/feast/issues/2881
244- - name : Install dist w/o go
245- if : ${{ matrix.from-source && matrix.python-version == '3.10' && matrix.os == 'macos-10.15'}}
246- run : pip install dist/*tar.gz
247203 - name : Install OS X dependencies
248204 if : matrix.os == 'macos-10.15'
249205 run : brew install coreutils
@@ -269,13 +225,3 @@ jobs:
269225 echo "$TEST_SCRIPT" > run-and-wait.sh
270226 bash run-and-wait.sh feast serve
271227 bash run-and-wait.sh feast ui
272- # We disable this test for the Python 3.10 binary since it does not include Go.
273- - name : Smoke test with go
274- if : matrix.python-version != '3.10' || matrix.os == 'ubuntu-latest'
275- run : |
276- cd test_repo/feature_repo
277- feast apply
278- echo "$TEST_SCRIPT" > run-and-wait.sh
279- pip install cffi
280- printf "\ngo_feature_serving: True" >> feature_store.yaml
281- bash run-and-wait.sh feast serve
0 commit comments