kou commented on a change in pull request #9767:
URL: https://github.com/apache/arrow/pull/9767#discussion_r600062036



##########
File path: dev/tasks/python-wheels/github.osx.yml
##########
@@ -31,88 +43,107 @@ jobs:
       - name: Checkout Arrow
         run: |
           set -ex
-
           git clone --no-checkout {{ arrow.remote }} arrow
           git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
           git -C arrow checkout FETCH_HEAD
           git -C arrow submodule update --init --recursive
 
-      - name: Build wheel
+      - name: Install System Dependencies
+        run: brew install bison ninja
+
+      # Restore from cache the previously built ports.
+      # If cache-miss, download and build vcpkg (aka "bootstrap vcpkg").
+      - name: Restore from Cache and Install Vcpkg
+        # Download and build vcpkg, without installing any port.
+        # If content is cached already, it is a no-op.
+        uses: kszucs/run-vcpkg@main
+        with:
+          # Required to prevent cache eviction on crossbow's main branch
+          # where we build pre-build the vcpkg packages
+          setupOnly: true
+          doNotSaveCache: true
+          appendedCacheKey: "-macos-{{ macos_deployment_target }}"
+          vcpkgDirectory: {{ "${{ github.workspace }}/vcpkg" }}
+          vcpkgGitCommitId: fced4bef1606260f110d74de1ae1975c2b9ac549
+
+      - name: Patch Vcpkg Ports
         run: |
-          set -ex
-
-          git clone https://github.com/matthew-brett/multibuild
-          git -C multibuild checkout 8882150df6529658700b66bec124dfb77eefca26
-
-          # source utilities required for wheel builds
-          export CONFIG_PATH=`pwd`/arrow/dev/tasks/python-wheels/osx-build.sh
-          source multibuild/common_utils.sh
-          source multibuild/travis_osx_steps.sh
-
-          # provided by travis_osx_steps
-          before_install
-
-          brew install \
-            automake \
-            bison \
-            boost \
-            ccache \
-            cmake \
+          cd $VCPKG_ROOT
+          if ! git apply --reverse --check --ignore-whitespace 
../arrow/ci/vcpkg/ports.patch; then
+            git apply --ignore-whitespace ../arrow/ci/vcpkg/ports.patch
+            echo "Patch successfully applied!"
+          fi
+
+      # Now that vcpkg is installed, it is being used to run with the desired 
arguments.
+      - name: Install Vcpkg Dependencies
+        run: |
+          $VCPKG_ROOT/vcpkg install \

Review comment:
       OK. Thanks.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to