Skip to content

Commit

Permalink
CI: cibuildwheel env vars for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jun 3, 2024
1 parent 3410b30 commit d8cc95b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--container-architecture linux/amd64
--secret-file=/home/vanderaa/.secrets
-P self-hosted=docker.exascience.org:5000/csa_env_dlang
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
-P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04
-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04
10 changes: 7 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ jobs:

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
env:
CIBW_BUILD: 'cp36-manylinux_x86_64 cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64'
CIBW_ENVIRONMENT: 'CMAKE_ARGS="-DENABLE_BOOST=OFF -DENABLE_CMDLINE=OFF -DENABLE_TESTS=OFF" BUILD_ARGS=-j6'
CIBW_MANYLINUX_X86_64_IMAGE: vanderaa/manylinux2014_x86_64_smurff
CIBW_TEST_COMMAND: 'pytest {project}/python/test'
CIBW_TEST_REQUIRES: 'parameterized pytest'
CIBW_BUILD_VERBOSITY: 1

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit d8cc95b

Please sign in to comment.