Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build TileDB-VCF-Py on Windows without conda #766

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,27 @@ on:
- 'ci/gha-win-env.yml'
- 'libtiledbvcf/**'
workflow_dispatch:
defaults:
run:
shell: cmd /C CALL {0}
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install conda env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/gha-win-env.yml
cache-environment: true
init-shell: cmd.exe
condarc: |
channels:
- conda-forge
- tiledb
channel_priority: strict
- name: Build libtiledbvcf
run: cmd /C CALL ci\build-libtiledbvcf.bat
- name: libtiledbvcf version
run: tiledbvcf.exe version
- name: Build tiledbvcf-py
run: cmd /C CALL ci\build-tiledbvcf-py.bat
fetch-depth: 0 # fetch everything for python setuptools_scm
- name: Build and install libtiledbvcf
run: |
cmake -S libtiledbvcf -B libtiledbvcf\build
cmake --build libtiledbvcf\build -j2
cmake --build libtiledbvcf\build -j2 --target install-libtiledbvcf
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install tiledbvcf-py
run: |
set TileDB_DIR=.\libtiledbvcf\build\externals\install\lib\cmake\TileDB\
cd apis\python
python -m pip install -v .[test,dev]
- name: tiledbvcf-py version
run: python -c "import tiledbvcf; print(tiledbvcf.version)"
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions libtiledbvcf/cmake/Modules/FindHTSlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ if (NOT HTSLIB_FOUND)
message("CMD_EXE_PATH is ${CMD_EXE_PATH}")
string(REPLACE "/" "\\\\" CMD_EXE_PATH_FWD_SLASH "${CMD_EXE_PATH}")
message("CMD_EXE_PATH_FWD_SLASH is ${CMD_EXE_PATH_FWD_SLASH}")

ExternalProject_Add(ep_htslib
PREFIX "externals"
URL https://github.com/TileDB-Inc/m2w64-htslib-build/releases/download/1.20-0/m2w64-htslib-1.20-0.tar.gz
URL_HASH SHA1=da39a3ee5e6b4b0d3255bfef95601890afd80709
URL_HASH SHA1=6f3e208ccc0262f89dcdf344d96e40696a5db133
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
Expand Down
Loading