Skip to content

Commit

Permalink
Create a common build environment env var
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Feb 19, 2024
1 parent bbdaa72 commit 70c36ae
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ jobs:
python: "3.12"

steps:
env:
CIBW_ENVIRONMENT_COMMON: >
CMAKE_ARGS=-DBUILD_TESTING=OFF
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
VCPKG_BINARY_SOURCES="clear;x-gha,readwrite"
VCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
VCPKG_INSTALLED_DIR=${{ env.VCPKG_INSTALLED_DIR }}
LD_LIBRARY_PATH=${{ env.VCPKG_INSTALLED_DIR }}/${{ matrix.triplet }}/lib
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
Expand All @@ -142,17 +152,11 @@ jobs:
env:
CIBW_BUILD: ${{ matrix.cpython }}-${{ matrix.extra_build }}*
CIBW_ENVIRONMENT_LINUX: >
CMAKE_ARGS=-DBUILD_TESTING=OFF
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
VCPKG_BINARY_SOURCES="clear;x-gha,readwrite"
VCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
VCPKG_INSTALLED_DIR=${{ env.VCPKG_INSTALLED_DIR }}
LD_LIBRARY_PATH=${{ env.VCPKG_INSTALLED_DIR }}/${{ matrix.triplet }}/lib
${{ env.CIBW_ENVIRONMENT_COMMON }}
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
auditwheel repair -w {dest_dir} {wheel} --exclude libarrow_python.so --exclude libarrow.so.1500
CIBW_TEST_EXTRAS: applications,test
CIBW_TEST_COMMAND: py.test -s -vvv --pyargs arcae
CIBW_TEST_COMMAND_LINUX: py.test -s -vvv --pyargs arcae

- name: Upload wheel artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 70c36ae

Please sign in to comment.