Skip to content

Commit

Permalink
azure-pipelines.yml: export dependencies sources
Browse files Browse the repository at this point in the history
Export the source code of the build dependencies with msvc for the
Windows build.

Signed-off-by: Andreea Andrisan <Andreea.Andrisan@analog.com>
  • Loading branch information
AAndrisa committed Oct 23, 2024
1 parent 7e818cb commit 84905ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CI/azure/prepare_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ release_artifacts() {
mkdir include
cd ..
cp ./Windows-VS-2019-x64/iio.h ./Windows/include
cp ./Windows-VS-2019-x64/Windows-msvc-deps.zip ./
for i in $zip_assets; do
if [ "${i}" != "MinGW-W64" ]; then
rm ./"Windows-${i}"/Windows-msvc-deps.zip
fi
rm ./"Windows-${i}"/iio.h
mv ./"Windows-${i}" Windows
done
Expand Down
10 changes: 6 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ stages:
sourceFolder: '$(Agent.BuildDirectory)/s/build-msvc/bindings/csharp'
contents: 'libiio-sharp.dll'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: CopyFiles@2
displayName: 'Copy dependencies sources archive'
inputs:
sourceFolder: '$(Agent.BuildDirectory)/s/'
contents: 'Windows-msvc-deps.zip'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PowerShell@2
displayName: 'Copy dependencies'
inputs:
Expand All @@ -245,10 +251,6 @@ stages:
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: '$(artifactName)'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Agent.BuildDirectory)/s/Windows-msvc-deps.zip'
artifactName: '$(artifactName)-msvc-deps.zip'

#############################################
- job: GenerateSetupExe
Expand Down

0 comments on commit 84905ab

Please sign in to comment.