Skip to content

Commit 61da047

Browse files
committed
CI: build manylinux package with standalone compilation script
1 parent 68d25fb commit 61da047

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,8 @@ stages:
3939
vmImage: 'ubuntu-16.04'
4040
container: quay.io/pypa/manylinux2010_x86_64:latest
4141
steps:
42-
- bash: |
43-
/opt/python/cp37-cp37m/bin/python -m pip install --user --only-binary=:all: cmake ninja
44-
echo "##vso[task.prependpath]$HOME/.local/bin"
45-
displayName: 'Install build tools'
46-
- template: ci/azure_build_steps.yml
47-
parameters:
48-
cpack: false
49-
cmake_stepvars: '-DCMAKE_SHARED_LINKER_FLAGS=-static-libstdc++ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=1 -DCMAKE_POLICY_DEFAULT_CMP0069=NEW -G Ninja'
50-
- publish: build/install/lib/liblsl64.so
42+
- bash: CFLAGS="-flto -static-libstdc++ -std=c++14" ./standalone_compilation_linux.sh
43+
- publish: liblsl.so
5144
artifact: manylinux2010
5245
- stage: Upload
5346
jobs:
@@ -59,7 +52,7 @@ stages:
5952
- task: DownloadPipelineArtifact@2
6053
inputs:
6154
targetPath: upload
62-
- bash: mv upload/manylinux2010/liblsl64.so upload/liblsl-manylinux2010-liblsl64.so
55+
- bash: mv upload/manylinux2010/liblsl.so upload/liblsl-manylinux2010-liblsl64.so
6356
- task: GithubRelease@0
6457
inputs:
6558
githubConnection: upload

0 commit comments

Comments
 (0)