Include header files in Android Artifacts (#896)

This commit is contained in:
Tom M 2021-05-26 18:26:40 +02:00 committed by GitHub
parent 148cec6c03
commit 17fb48def5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -601,11 +601,16 @@ jobs:
- script: |
set -ex
mkdir -p $(Build.ArtifactStagingDirectory)/$(ARCH)
cd $(Build.ArtifactStagingDirectory)/$(ARCH)
cp -a $(PREFIX)/lib/* .
# use ANDROID_ABI_CMAKE so libs can be simply copied to the archive contents in src/main/jniLibs
mkdir -p $(Build.ArtifactStagingDirectory)/lib/$(ANDROID_ABI_CMAKE)
cd $(Build.ArtifactStagingDirectory)/lib/$(ANDROID_ABI_CMAKE)
cp -LR $(PREFIX)/lib/* .
ls -Rg .
rm -rf *.dll *.alias gettext/ libtextstyle.* *.a *.la
rm -f *.so.*
mkdir -p $(Build.ArtifactStagingDirectory)/include
cd $(Build.ArtifactStagingDirectory)/include
cp -a $(PREFIX)/include/fluidsynth* .
displayName: 'Collecting artifacts'
- script: |
@ -634,7 +639,7 @@ jobs:
workingDirectory: '$(PREFIX)/lib'
- task: PublishBuildArtifacts@1
displayName: 'Publishing Artefacts for Android API$(ANDROID_API) $(ARCH)'
displayName: 'Publishing Artefacts for Android API$(ANDROID_API) $(ANDROID_ABI_CMAKE)'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: '$(ARTIFACT_NAME)'