Skip to content

Commit 41d7f4a

Browse files
committed
Merge remote-tracking branch 'origin/main' into db/vcpkg
2 parents 51e3337 + 9ee592d commit 41d7f4a

File tree

2 files changed

+0
-206
lines changed

2 files changed

+0
-206
lines changed

Diff for: .azure-pipelines.yml

-78
Original file line numberDiff line numberDiff line change
@@ -54,81 +54,3 @@ stages:
5454
test_cmd: -c "import tiledbvcf; print(tiledbvcf.version)"
5555
steps:
5656
- template: ci/build-images.yml
57-
58-
- stage: BuildNativeLibs
59-
condition: or(eq(variables.isMain, true), eq(variables.isRefTag, true))
60-
jobs:
61-
- job: Linux_OSX
62-
strategy:
63-
matrix:
64-
linux:
65-
imageName: 'ubuntu-24.04'
66-
python.version: '3.x'
67-
CXX: g++
68-
BUILD_PYTHON_API: ON
69-
mac:
70-
imageName: 'macOS-13'
71-
python.version: '3.7'
72-
CXX: clang++
73-
BUILD_PYTHON_API: ON
74-
#SDKROOT: '/Applications/Xcode_10.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk'
75-
MACOSX_DEPLOYMENT_TARGET: '11'
76-
77-
pool:
78-
vmImage: $(imageName)
79-
steps:
80-
- task: UsePythonVersion@0
81-
inputs:
82-
versionSpec: '$(python.version)'
83-
architecture: 'x64'
84-
- script: printenv
85-
displayName: 'Print Env'
86-
- template: ci/native_libs-linux_osx.yml
87-
88-
- stage: GitHubRelease
89-
condition: eq(variables.isRefTag, true)
90-
jobs:
91-
- job: All_OS
92-
strategy:
93-
matrix:
94-
ubuntu_18:
95-
imageName: 'ubuntu-24.04'
96-
pool:
97-
vmImage: $(imageName)
98-
99-
steps:
100-
- download: current
101-
patterns: '**/*.tar.gz'
102-
103-
- bash: |
104-
unset SYSTEM
105-
set +e
106-
ci/collect-nativelibs.sh
107-
displayName: 'Collect Native Libraries'
108-
109-
- task: ArchiveFiles@2
110-
inputs:
111-
rootFolderOrFile: '$(Build.BinariesDirectory)'
112-
includeRootFolder: false
113-
archiveType: 'tar' # Options: zip, 7z, tar, wim
114-
tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none
115-
archiveFile: $(Build.ArtifactStagingDirectory)/tiledb-vcf-jar-$(Build.SourceBranchName).tar.gz
116-
replaceExistingArchive: true
117-
verbose: true # Optional
118-
condition: succeeded()
119-
120-
- task: PublishBuildArtifacts@1
121-
inputs:
122-
pathtoPublish: $(Build.ArtifactStagingDirectory)/tiledb-vcf-jar-$(Build.SourceBranchName).tar.gz
123-
artifactName: libraries
124-
condition: succeeded()
125-
126-
- task: GithubRelease@0
127-
displayName: 'GitHub Release'
128-
inputs:
129-
gitHubConnection: 'TileDB-Inc-Release'
130-
repositoryName: TileDB-Inc/TileDB-VCF
131-
tag: $(Build.SourceBranchName)
132-
action: "edit"
133-
isDraft: true
134-
assets: $(Build.BinariesDirectory)/jars/*.jar

Diff for: ci/native_libs-linux_osx.yml

-128
Original file line numberDiff line numberDiff line change
@@ -1,128 +0,0 @@
1-
steps:
2-
- bash: |
3-
set -e pipefail
4-
5-
# Install htslib dependencies
6-
if [[ "$AGENT_OS" == "Linux" ]]; then
7-
sudo apt-get update && sudo apt-get install -y automake autoconf libbz2-dev liblzma-dev
8-
fi
9-
10-
# Install bcftools (only required for running the CLI tests)
11-
version=1.16
12-
if [[ "$AGENT_OS" == "Linux" ]]; then
13-
pushd /tmp
14-
wget https://github.com/samtools/bcftools/releases/download/${version}/bcftools-${version}.tar.bz2
15-
tar xfj bcftools-${version}.tar.bz2
16-
cd bcftools-${version}
17-
./configure --prefix=/usr
18-
make -j2
19-
sudo make install
20-
popd
21-
else
22-
brew install bcftools automake
23-
fi
24-
25-
# Install some extra dependencies to speed up the core TileDB build
26-
if [[ "$AGENT_OS" == "Linux" ]]; then
27-
sudo apt-get install -y libssl-dev libbz2-dev liblz4-dev libtbb-dev libcurl4-openssl-dev zlib1g-dev
28-
fi
29-
displayName: 'Install dependencies'
30-
31-
- bash: |
32-
# azure bash does not treat intermediate failure as error
33-
# https://github.com/Microsoft/azure-pipelines-yaml/issues/135
34-
set -e pipefail
35-
36-
# Azure sets "SYSTEM=build" for unknown reasons, which breaks the OpenSSL configure script (in TileDB itself)
37-
# - openssl configure uses ENV{SYSTEM} if available:
38-
# https://github.com/openssl/openssl/blob/6d745d740d37d680ff696486218b650512bbbbc6/config#L56
39-
# - error description:
40-
# https://developercommunity.visualstudio.com/content/problem/602584/openssl-build-error-when-using-pipelines.htm
41-
unset SYSTEM
42-
43-
# Configure and build TileDB-VCF
44-
mkdir -p $BUILD_REPOSITORY_LOCALPATH/libtiledbvcf/build
45-
cd $BUILD_REPOSITORY_LOCALPATH/libtiledbvcf/build
46-
cmake -DCMAKE_INSTALL_PREFIX=$BUILD_REPOSITORY_LOCALPATH/dist ..
47-
48-
make -j4 all tiledb_vcf_unit
49-
50-
make install
51-
52-
displayName: 'Build and test TileDB-VCF'
53-
54-
- bash: |
55-
set -e pipefail
56-
pushd $BUILD_REPOSITORY_LOCALPATH/apis/java
57-
58-
./gradlew assemble
59-
60-
export LD_LIBRARY_PATH=$BUILD_REPOSITORY_LOCALPATH/apis/java/build/resources/main/lib:$LD_LIBRARY_PATH
61-
62-
displayName: 'Build and test TileDB-VCF Java API'
63-
64-
- bash: |
65-
echo "Testing"
66-
ls
67-
echo "listing JNI"
68-
ls $BUILD_REPOSITORY_LOCALPATH/dist/lib
69-
70-
echo "listing 2"
71-
ls $BUILD_REPOSITORY_LOCALPATH/apis/java/build/install/lib
72-
73-
74-
if [[ ( "$AGENT_OS" == "Linux" ) ]]; then
75-
cp $BUILD_REPOSITORY_LOCALPATH/libtiledbvcf/build/externals/install/lib/*.so* $BUILD_BINARIESDIRECTORY
76-
cp $BUILD_REPOSITORY_LOCALPATH/dist/lib/*.so* $BUILD_BINARIESDIRECTORY
77-
cp $BUILD_REPOSITORY_LOCALPATH/apis/java/build/install/lib/*.so* $BUILD_BINARIESDIRECTORY
78-
fi
79-
80-
if [[ ( "$AGENT_OS" == "Darwin" ) ]]; then
81-
cp $BUILD_REPOSITORY_LOCALPATH/dist/lib/*.dylib $BUILD_BINARIESDIRECTORY
82-
cp $BUILD_REPOSITORY_LOCALPATH/apis/java/build/install/lib/*.dylib $BUILD_BINARIESDIRECTORY
83-
fi
84-
85-
displayName: 'Test'
86-
87-
- script: |
88-
echo $sourceVersion
89-
commitHash=${sourceVersion:0:7}
90-
echo $commitHash
91-
echo "##vso[task.setvariable variable=commitHash]$commitHash" ## Set variable for using in other tasks.
92-
env: { sourceVersion: $(Build.SourceVersion) }
93-
displayName: Git Hash 7-digit
94-
95-
- bash: |
96-
git describe --tags > $BUILD_REPOSITORY_LOCALPATH/version.txt
97-
displayName: 'Capture version'
98-
99-
- task: ArchiveFiles@2
100-
inputs:
101-
rootFolderOrFile: '$(Build.BinariesDirectory)'
102-
includeRootFolder: false
103-
archiveType: 'tar' # Options: zip, 7z, tar, wim
104-
tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none
105-
archiveFile: $(Build.ArtifactStagingDirectory)/tiledb-vcf-$(Agent.OS)-$(Build.SourceBranchName)-$(commitHash).tar.gz
106-
replaceExistingArchive: true
107-
verbose: true # Optional
108-
condition: succeeded()
109-
110-
- task: PublishBuildArtifacts@1
111-
inputs:
112-
pathtoPublish: $(Build.ArtifactStagingDirectory)/tiledb-vcf-$(Agent.OS)-$(Build.SourceBranchName)-$(commitHash).tar.gz
113-
artifactName: libraries
114-
condition: succeeded()
115-
116-
- bash: |
117-
set -e pipefail
118-
# Display log files if the build failed
119-
echo "Dumping log files for failed build"
120-
echo "----------------------------------"
121-
for f in $(find $BUILD_REPOSITORY_LOCALPATH/libtiledbvcf/build -name *.log);
122-
do echo "------"
123-
echo $f
124-
echo "======"
125-
cat $f
126-
done;
127-
condition: failed() # only run this job if the build step failed
128-
displayName: "Print log files (failed build only)"

0 commit comments

Comments
 (0)