Skip to content

Commit

Permalink
MAINT(cfg): Refactor configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSWang committed Sep 10, 2024
1 parent 3a7fb2b commit c00b62f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ jobs:
PY_OMP=1
PY_CXXFLAGS_OMP="-Xpreprocessor -fopenmp"
PY_LDFLAGS_OMP="-Xpreprocessor -fopenmp"
PY_BUILD_PARALLEL='-j'
MACOSX_DEPLOYMENT_TARGET=${{ env.MACOSX_VERS_MIN }}
SYSTEM_VERSION_COMPAT=0
CIBW_BEFORE_ALL_MACOS:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/cd_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
PY_CXX=nvcc
PY_OMP=1
PY_CUDA=1
PY_BUILD_PARALLEL='-j'
- name: Verify built distribution
run: python -m twine check --strict dist/*
Expand Down Expand Up @@ -128,7 +129,8 @@ jobs:
with:
log-file-suffix: '${{matrix.os}}_cudatoolkit_log.txt'
method: 'network'
sub-packages: '["nvcc", "cufft"]'
sub-packages: '["nvcc"]'
non-cuda-sub-packages: '["libcufft"]'

- name: Set up (Mini)conda
uses: conda-incubator/setup-miniconda@v3
Expand All @@ -149,7 +151,7 @@ jobs:
if: github.event_name == 'workflow_dispatch'
uses: knicknic/os-specific-run@v1.0.4
env:
recipe_file: deploy/pkg/conda_recipe/meta.yaml
recipe_file: deploy/pkg/conda_recipe_cuda/meta.yaml
with:
linux: |
vers_tag=${{ github.event.inputs.version_tag }}
Expand All @@ -161,7 +163,7 @@ jobs:
- name: Build Conda package
env:
recipe_dir: deploy/pkg/conda_recipe
recipe_dir: deploy/pkg/conda_recipe_cuda
output_dir: dist/
variants: "{'python': ['3.10', '3.11', '3.12']}"
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cd_xp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ jobs:
PY_OMP=1
PY_CXXFLAGS_OMP="-Xpreprocessor -fopenmp"
PY_LDFLAGS_OMP="-Xpreprocessor -fopenmp"
PY_BUILD_PARALLEL='-j'
MACOSX_DEPLOYMENT_TARGET=${{ env.MACOSX_VERS_MIN }}
SYSTEM_VERSION_COMPAT=0
CIBW_BEFORE_ALL_MACOS:
Expand Down
6 changes: 3 additions & 3 deletions .pyproject_cuda.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ skip = [
'*_ppc64le',
'*_s390x',
]
environment = { PY_OMP='1', PY_CUDA='1', PY_BUILD_PARALLEL='-j', SYSTEM_VERSION_COMPAT='0' }
test-requires = "pytest>=7.0"
test-command = "pytest {project}/tests"
environment = { PY_OMP='1', PY_CUDA='1', PY_BUILD_PARALLEL='-j' }
# test-requires = "pytest>=7.0"
# test-command = "pytest {project}/tests"

manylinux-x86_64-image = 'manylinux_2_28'
manylinux-aarch64-image = 'manylinux_2_28'
Expand Down

0 comments on commit c00b62f

Please sign in to comment.