forked from ossia/libossia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
706 lines (588 loc) · 23 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
trigger:
branches:
include:
- '*'
tags:
include:
- '*'
pr:
- '*'
variables:
isGitTag: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/')]
gitTag: $[replace(variables['Build.SourceBranch'], 'refs/tags/', '')]
stages:
- stage: Build
jobs:
- job: build_benchmark_ubuntu
displayName: Benchmarks
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: true
fetchDepth: 1
- bash: |
sudo apt update -qq
sudo apt install -qq -y build-essential g++ ninja-build wget
wget https://github.com/jcelerier/cninja/releases/download/v3.7.2/cninja-v3.7.2-Linux.tar.gz
tar xaf cninja-*-Linux.tar.gz
rm *.tar.gz
displayName: Dependencies
- bash: |
echo $(variables.gitTag)
cd $(System.DefaultWorkingDirectory)
git clone https://github.com/google/benchmark
git clone https://github.com/google/googletest.git benchmark/googletest
(
cd benchmark/
mkdir build
cd build/
cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=inst -DBUILD_SHARED_LIBS=OFF
ninja
ninja install
)
(
./cninja $(Build.SourcesDirectory) static minimal benchmarks -- -DCMAKE_PREFIX_PATH=$PWD/benchmark/build/inst
mv build-* build
)
displayName: Build
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/tests/ossia_DeviceBenchmark
artifactName: libossia-device-bench
- job: ubuntu_RunBenchmarks_selfhosted
dependsOn: build_benchmark_ubuntu
pool:
name: Default
demands:
- agent.os -equals Linux
- StabilizerServer
steps:
- checkout: none
- script: curl http://$(StabilizerServer):7373/acquire # On stabilise la machine
displayName: 'Tune system performance'
- download: current
artifact: libossia-device-bench
- script: |
apt update -qq
apt install -qq libbenchmark-dev libbenchmark-tools
cp -rf /azp/agent/_work/1/libossia-device-bench/* .
mkdir results
chmod +x ossia_DeviceBenchmark
./ossia_DeviceBenchmark
env:
BENCHMARK_BENCHMARK_FORMAT: 'json'
BENCHMARK_BENCHMARK_OUT: 'results/benchmarks-results.json'
BENCHMARK_FORMAT: 'json'
BENCHMARK_OUT: 'results/benchmarks-results.json'
displayName: 'Run benchmarks'
- publish: results
artifact: benchResults_selfhosted
- script: curl http://$(StabilizerServer):7373/release
condition: always()
displayName: 'Reset system performance'
- job: Unity3DLinux
displayName: Unity3D (Linux)
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: true
fetchDepth: 1
- bash: |
sudo apt update -qq
sudo apt install -qq -y build-essential g++ ninja-build libavahi-client-dev
displayName: Dependencies
- bash: |
echo $(variables.gitTag)
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) -DOSSIA_UNITY3D_ONLY=1 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
displayName: Build
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install
artifactName: libossia-unity3d-linux
- job: Unity3DMac
displayName: Unity3D (macOS)
pool:
vmImage: 'macos-10.15'
steps:
- checkout: self
submodules: true
fetchDepth: 1
- bash: |
brew install ninja
displayName: Dependencies
- bash: |
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) -DOSSIA_UNITY3D_ONLY=1 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
# Setup codesigning
# Thanks https://www.update.rocks/blog/osx-signing-with-travis/
(
set +x
KEY_CHAIN=build.keychain
echo "$MAC_CERT_B64" | base64 --decode > ossia-cert.p12
security create-keychain -p azure $KEY_CHAIN
security default-keychain -s $KEY_CHAIN
security unlock-keychain -p azure $KEY_CHAIN
security import ossia-cert.p12 -k $KEY_CHAIN -P "$MAC_CERT_PASSWORD" -T /usr/bin/codesign;
security set-key-partition-list -S apple-tool:,apple: -s -k azure $KEY_CHAIN
rm -rf *.p12
)
security unlock-keychain -p azure build.keychain
(
cd install
codesign --force --timestamp --sign "ossia.io" ossia/Plugins/macos/ossia.dylib
zip ossia-unity.zip ossia/Plugins/macos/ossia.dylib
xcrun altool \
--notarize-app \
-t osx \
-f "ossia-unity.zip" \
--primary-bundle-id "io.ossia.ossia-unity" \
-u [email protected] -p "@env:MAC_ALTOOL_PASSWORD"
rm ossia-unity.zip
)
displayName: Build
env:
MAC_CERT_B64: $(MAC_CERT_B64)
MAC_CERT_PASSWORD: $(MAC_CERT_PASSWORD)
MAC_ALTOOL_PASSWORD: $(MAC_ALTOOL_PASSWORD)
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install
artifactName: libossia-unity3d-macos
- job: Unity3DIOs
displayName: Unity3D (iOS)
pool:
vmImage: 'macos-10.15'
steps:
- checkout: self
submodules: true
- bash: |
brew install ninja
displayName: Dependencies
- bash: |
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) \
-DOSSIA_UNITY3D_ONLY=1 \
-DCMAKE_INSTALL_PREFIX=install \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=$(Build.SourcesDirectory)/3rdparty/ios-cmake/ios.toolchain.cmake \
-DPLATFORM=OS64 \
-DENABLE_BITCODE=1 \
-DDEPLOYMENT_TARGET=12.0
cmake --build .
cmake --build . --target install
# Setup codesigning
# Thanks https://www.update.rocks/blog/osx-signing-with-travis/
(
set +x
KEY_CHAIN=build.keychain
echo "$MAC_CERT_B64" | base64 --decode > ossia-cert.p12
security create-keychain -p azure $KEY_CHAIN
security default-keychain -s $KEY_CHAIN
security unlock-keychain -p azure $KEY_CHAIN
security import ossia-cert.p12 -k $KEY_CHAIN -P "$MAC_CERT_PASSWORD" -T /usr/bin/codesign;
security set-key-partition-list -S apple-tool:,apple: -s -k azure $KEY_CHAIN
rm -rf *.p12
)
security unlock-keychain -p azure build.keychain
(
cd install
codesign --force --timestamp --sign "ossia.io" ossia/Plugins/ios/ossia.a
zip ossia-unity.zip ossia/Plugins/ios/ossia.a
xcrun altool \
--notarize-app \
-t ios \
-f "ossia-unity.zip" \
--primary-bundle-id "io.ossia.ossia-unity" \
-u [email protected] -p "@env:MAC_ALTOOL_PASSWORD"
rm ossia-unity.zip
)
displayName: Build
env:
MAC_CERT_B64: $(MAC_CERT_B64)
MAC_CERT_PASSWORD: $(MAC_CERT_PASSWORD)
MAC_ALTOOL_PASSWORD: $(MAC_ALTOOL_PASSWORD)
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install
artifactName: libossia-unity3d-ios
- job: Unity3DWin32
displayName: Unity3D (Win32)
pool:
vmImage: 'windows-2019'
steps:
- checkout: self
submodules: true
fetchDepth: 1
- script: |
cinst -y ninja
- script: |
pushd "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
for /f "delims=" %%x in ('.\vswhere.exe -latest -property InstallationPath') do set VSPATH=%%x
popd
call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" x64
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_C_COMPILER="cl.exe" -DOSSIA_UNITY3D_ONLY=1 -DCMAKE_SYSTEM_VERSION=7 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
displayName: Build
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install
artifactName: libossia-unity3d-win32
- job: JavaLinux
displayName: Java (Linux)
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: true
fetchDepth: 1
- bash: |
sudo apt update -qq
sudo apt install -qq -y build-essential g++ ninja-build openjdk-8-jdk-headless libavahi-client-dev
displayName: Dependencies
- bash: |
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) -DJAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 -DOSSIA_JAVA_ONLY=1 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
displayName: Build
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install
artifactName: libossia-java-linux
- job: JavaMac
displayName: Java (macOS)
pool:
vmImage: 'macos-10.15'
steps:
- checkout: self
submodules: true
fetchDepth: 1
- bash: |
brew install ninja
brew install --cask adoptopenjdk/openjdk/adoptopenjdk8
displayName: Dependencies
- bash: |
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
echo "JAVA_HOME: $JAVA_HOME"
cmake -GNinja $(Build.SourcesDirectory) -DJAVA_HOME=$JAVA_HOME -DOSSIA_JAVA_ONLY=1 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
# Setup codesigning
# Thanks https://www.update.rocks/blog/osx-signing-with-travis/
(
set +x
KEY_CHAIN=build.keychain
echo "$MAC_CERT_B64" | base64 --decode > ossia-cert.p12
security create-keychain -p azure $KEY_CHAIN
security default-keychain -s $KEY_CHAIN
security unlock-keychain -p azure $KEY_CHAIN
security import ossia-cert.p12 -k $KEY_CHAIN -P "$MAC_CERT_PASSWORD" -T /usr/bin/codesign;
security set-key-partition-list -S apple-tool:,apple: -s -k azure $KEY_CHAIN
rm -rf *.p12
)
security unlock-keychain -p azure build.keychain
(
cd install
unzip ossia-java.jar
codesign --force --timestamp --sign "ossia.io" darwin/*
rm ossia-java.jar
zip -r ossia-java.jar META-INF io darwin
cp ossia-java.jar ossia-java.zip
xcrun altool \
--notarize-app \
-t osx \
-f "ossia-java.zip" \
--primary-bundle-id "io.ossia.ossia-java" \
-u [email protected] -p "@env:MAC_ALTOOL_PASSWORD"
rm ossia-java.zip
)
displayName: Build
env:
MAC_CERT_B64: $(MAC_CERT_B64)
MAC_CERT_PASSWORD: $(MAC_CERT_PASSWORD)
MAC_ALTOOL_PASSWORD: $(MAC_ALTOOL_PASSWORD)
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install
artifactName: libossia-java-macos
- job: JavaWin32
displayName: Java (Win32)
pool:
vmImage: 'windows-2019'
steps:
- checkout: self
submodules: true
fetchDepth: 1
- script: |
cinst -y ninja
cinst -y jdk8
- script: |
pushd "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
for /f "delims=" %%x in ('.\vswhere.exe -latest -property InstallationPath') do set VSPATH=%%x
popd
call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" x64
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) -DJAVA_HOME="c:\Program Files\Java\jdk1.8.0_211" -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_SYSTEM_VERSION=7 -DOSSIA_JAVA_ONLY=1 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
displayName: Build
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install
artifactName: libossia-java-win32
- job: MaxMacOS
displayName: ossia-max (macOS)
pool:
vmImage: 'macos-10.15'
steps:
- checkout: self
submodules: false
fetchDepth: 1
- bash: |
brew install ninja
displayName: Dependencies
- bash: |
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) -DOSSIA_MAX_ONLY=1 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
# Setup codesigning
# Thanks https://www.update.rocks/blog/osx-signing-with-travis/
(
set +x
KEY_CHAIN=build.keychain
echo "$MAC_CERT_B64" | base64 --decode > ossia-cert.p12
security create-keychain -p azure $KEY_CHAIN
security default-keychain -s $KEY_CHAIN
security unlock-keychain -p azure $KEY_CHAIN
security import ossia-cert.p12 -k $KEY_CHAIN -P "$MAC_CERT_PASSWORD" -T /usr/bin/codesign;
security set-key-partition-list -S apple-tool:,apple: -s -k azure $KEY_CHAIN
rm -rf *.p12
)
security unlock-keychain -p azure build.keychain
(
cd install
find ossia-max-package/ -name '*.dylib' -exec codesign --force --timestamp --sign "ossia.io" {} \;
find ossia-max-package/ -name '*.mxo' -exec codesign --force --timestamp --sign "ossia.io" {} \;
zip ossia-max.zip ossia-max-package/
xcrun altool \
--notarize-app \
-t osx \
-f "ossia-max.zip" \
--primary-bundle-id "io.ossia.ossia-max" \
-u [email protected] -p "@env:MAC_ALTOOL_PASSWORD"
rm ossia-max.zip
)
displayName: Build
env:
MAC_CERT_B64: $(MAC_CERT_B64)
MAC_CERT_PASSWORD: $(MAC_CERT_PASSWORD)
MAC_ALTOOL_PASSWORD: $(MAC_ALTOOL_PASSWORD)
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install/ossia-max-package
artifactName: libossia-max-macos
- job: MaxWin64
displayName: ossia-max (Win64)
pool:
vmImage: 'windows-2019'
steps:
- checkout: self
submodules: false
fetchDepth: 1
- script: |
cinst -y ninja
- script: |
pushd "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
for /f "delims=" %%x in ('.\vswhere.exe -latest -property InstallationPath') do set VSPATH=%%x
popd
call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" x64
cd $(System.DefaultWorkingDirectory)
mkdir build
cd build
cmake -GNinja $(Build.SourcesDirectory) -DOSSIA_MAX_ONLY=1 -DCMAKE_SYSTEM_VERSION=7 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build . --target install
displayName: Build
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/build/install/ossia-max-package
artifactName: libossia-max-win64
- stage: Assemble
condition: succeeded()
# see https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/GitHubReleaseV1
jobs:
- job: AssembleMax
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-max-win64
path: $(System.DefaultWorkingDirectory)
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-max-macos
path: $(System.DefaultWorkingDirectory)
- bash: |
cd $(System.DefaultWorkingDirectory)
zip -r ossia-max.zip ossia
displayName: Package
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/ossia-max.zip
artifactName: ossia-max
- job: Unity3D
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-unity3d-win32
path: $(System.DefaultWorkingDirectory)/package
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-unity3d-macos
path: $(System.DefaultWorkingDirectory)/package
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-unity3d-linux
path: $(System.DefaultWorkingDirectory)/package
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-unity3d-ios
path: $(System.DefaultWorkingDirectory)/package
- bash: |
cd $(System.DefaultWorkingDirectory)
pushd $(System.DefaultWorkingDirectory)/package
zip -r ossia-unity3d.zip *
mv ossia-unity3d.zip $(System.DefaultWorkingDirectory)/ossia-unity3d.zip
popd
displayName: Package
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/ossia-unity3d.zip
artifactName: ossia-unity3d
- job: Java
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-java-win32
path: $(System.DefaultWorkingDirectory)/java-win32
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-java-macos
path: $(System.DefaultWorkingDirectory)/java-macos
- task: DownloadPipelineArtifact@2
inputs:
artifact: libossia-java-linux
path: $(System.DefaultWorkingDirectory)/java-linux
- bash: |
cd $(System.DefaultWorkingDirectory)
pushd java-macos
unzip -n ossia-java.jar
popd
pushd java-win32
unzip -n ossia-java.jar
mv win32-x86-64/ossia_x64.dll win32-x86-64/ossia.dll
popd
pushd java-linux
cp -rf ../java-macos/darwin .
cp -rf ../java-win32/win32-x86-64 .
unzip -n ossia-java.jar
rm ossia-java.jar
zip -r ossia-java.jar darwin win32-x86-64 linux-x86-64 io META-INF
zip -r ossia-java.zip ossia-java.jar jna.jar
mv ossia-java.zip $(System.DefaultWorkingDirectory)/ossia-java.zip
popd
displayName: Package
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/ossia-java.zip
artifactName: ossia-java
- stage: GithubRelease
# TODO check if it runs on tag and pull request automatically
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))
jobs:
- job: GithubRelease
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: false
fetchDepth: 1
- task: DownloadPipelineArtifact@2
inputs:
artifact: ossia-max
path: Assets
- task: DownloadPipelineArtifact@2
inputs:
artifact: ossia-java
path: Assets
- task: DownloadPipelineArtifact@2
inputs:
artifact: ossia-unity3d
path: Assets
- bash: |
if [ "$isGitTag" = "True" ]
then
RELEASE_NAME="$(gitTag)"
else
RELEASE_NAME="latest-ci-build"
fi
echo "##vso[task.setvariable variable=releaseName;]$RELEASE_NAME"
displayName: Set Release Name
- task: GitHubRelease@1
continueOnError: true
inputs:
gitHubConnection: github.com_jcelerier
repositoryName: ossia/libossia
action: 'delete'
tagSource: userSpecifiedTag
tag: '$(releaseName)'
- task: GitHubRelease@1
inputs:
gitHubConnection: github.com_jcelerier
repositoryName: ossia/libossia
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: userSpecifiedTag
tag: '$(releaseName)'
assetUploadMode: 'replace'
assets: 'Assets/*'
isPreRelease: true
# - bash: |
# git checkout '$(Build.SourceBranchName)'
# git push --follow-tags --force
# displayName: Push Tag