Now try Windows artifacts.
This commit is contained in:
parent
7e30a2afc1
commit
f49253cbf8
|
@ -4,113 +4,112 @@ variables:
|
||||||
releaseExamples: 'controlgallery cpp-multithread datetime drawtext histogram tester timer'
|
releaseExamples: 'controlgallery cpp-multithread datetime drawtext histogram tester timer'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: linux_amd64_shared_ninja
|
- job: windows_386_msvc2015_shared_ninja
|
||||||
displayName: 'Linux amd64 Shared with Ninja'
|
displayName: 'Windows 386 MSVC2015 Shared Ninja'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-16.04'
|
vmImage: 'vs2015-win2012r2'
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
steps:
|
steps:
|
||||||
- template: azure-pipelines/setup-python3.yml
|
- template: azure-pipelines/vs2015-install-python3.yml
|
||||||
- template: azure-pipelines/install-latest-meson.yml
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
- script: |
|
- template: azure-pipelines/windows-install-ninja.yml
|
||||||
sudo apt-get install libgtk-3-dev ninja-build
|
|
||||||
displayName: 'Install Dependencies'
|
|
||||||
- template: azure-pipelines/configure.yml
|
- template: azure-pipelines/configure.yml
|
||||||
parameters:
|
parameters:
|
||||||
defaultLibrary: shared
|
beforeConfigure: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
||||||
backend: ninja
|
|
||||||
- template: azure-pipelines/build-ninja.yml
|
|
||||||
- template: azure-pipelines/darwinunix-artifacts.yml
|
|
||||||
parameters:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
libtype: shared
|
|
||||||
libfiles: libui.so.0
|
|
||||||
osHeader: ui_unix.h
|
|
||||||
|
|
||||||
- job: linux_amd64_static_ninja
|
|
||||||
displayName: 'Linux amd64 Static with Ninja'
|
|
||||||
pool:
|
|
||||||
vmImage: 'ubuntu-16.04'
|
|
||||||
workspace:
|
|
||||||
clean: all
|
|
||||||
steps:
|
|
||||||
- template: azure-pipelines/setup-python3.yml
|
|
||||||
- template: azure-pipelines/install-latest-meson.yml
|
|
||||||
- script: |
|
|
||||||
sudo apt-get install libgtk-3-dev ninja-build
|
|
||||||
displayName: 'Install Dependencies'
|
|
||||||
- template: azure-pipelines/configure.yml
|
|
||||||
parameters:
|
|
||||||
defaultLibrary: static
|
|
||||||
backend: ninja
|
|
||||||
- template: azure-pipelines/build-ninja.yml
|
|
||||||
- template: azure-pipelines/darwinunix-artifacts.yml
|
|
||||||
parameters:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
libtype: static
|
|
||||||
libfiles: libui.a
|
|
||||||
osHeader: ui_unix.h
|
|
||||||
|
|
||||||
# mac {
|
|
||||||
|
|
||||||
# notes:
|
|
||||||
# [18:36:55] <@jpakkane> Don't use the xcode backend for anything serious, it's a bit crap.
|
|
||||||
|
|
||||||
# TODO macosx10.14 doesn't work; it just uses the default SDK
|
|
||||||
|
|
||||||
- job: darwin_amd64_1014sdk_shared_ninja
|
|
||||||
displayName: 'Darwin amd64 10.14 SDK Shared with Ninja'
|
|
||||||
pool:
|
|
||||||
vmImage: 'macos-10.13'
|
|
||||||
workspace:
|
|
||||||
clean: all
|
|
||||||
steps:
|
|
||||||
- template: azure-pipelines/setup-python3.yml
|
|
||||||
- template: azure-pipelines/install-latest-meson.yml
|
|
||||||
- template: azure-pipelines/darwin-install-ninja.yml
|
|
||||||
- template: azure-pipelines/configure.yml
|
|
||||||
parameters:
|
|
||||||
beforeConfigure: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
|
||||||
defaultLibrary: shared
|
defaultLibrary: shared
|
||||||
backend: ninja
|
backend: ninja
|
||||||
- template: azure-pipelines/build-ninja.yml
|
- template: azure-pipelines/build-ninja.yml
|
||||||
parameters:
|
parameters:
|
||||||
beforeBuild: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
beforeBuild: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
||||||
- template: azure-pipelines/darwinunix-artifacts.yml
|
- template: azure-pipelines/darwinunix-artifacts.yml
|
||||||
parameters:
|
parameters:
|
||||||
os: darwin
|
os: windows
|
||||||
arch: amd64
|
arch: 386
|
||||||
|
toolchain: msvc2015
|
||||||
libtype: shared
|
libtype: shared
|
||||||
libfiles: libui.A.dylib
|
libfiles: libui.dll libui.exp libui.lib
|
||||||
osHeader: ui_darwin.h
|
osHeader: ui_windows.h
|
||||||
|
|
||||||
- job: darwin_amd64_1014sdk_static_ninja
|
- job: windows_386_msvc2015_static_ninja
|
||||||
displayName: 'Darwin amd64 10.14 SDK Static with Ninja'
|
displayName: 'Windows 386 MSVC2015 Static Ninja'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macos-10.13'
|
vmImage: 'vs2015-win2012r2'
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- template: azure-pipelines/vs2015-install-python3.yml
|
||||||
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
|
- template: azure-pipelines/windows-install-ninja.yml
|
||||||
|
- template: azure-pipelines/configure.yml
|
||||||
|
parameters:
|
||||||
|
beforeConfigure: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
||||||
|
defaultLibrary: static
|
||||||
|
backend: ninja
|
||||||
|
- template: azure-pipelines/build-ninja.yml
|
||||||
|
parameters:
|
||||||
|
beforeBuild: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
||||||
|
afterBuild: ren build\meson-out\libui.a build\meson-out\libui.lib
|
||||||
|
- template: azure-pipelines/windows-artifacts.yml
|
||||||
|
parameters:
|
||||||
|
os: windows
|
||||||
|
arch: 386
|
||||||
|
toolchain: msvc2015
|
||||||
|
libtype: static
|
||||||
|
libfiles: libui.lib
|
||||||
|
osHeader: ui_windows.h
|
||||||
|
|
||||||
|
- job: windows_386_msvc2017_shared_ninja
|
||||||
|
displayName: 'Windows 386 MSVC2017 Shared Ninja'
|
||||||
|
pool:
|
||||||
|
vmImage: 'vs2017-win2016'
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
steps:
|
steps:
|
||||||
- template: azure-pipelines/setup-python3.yml
|
- template: azure-pipelines/setup-python3.yml
|
||||||
- template: azure-pipelines/install-latest-meson.yml
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
- template: azure-pipelines/darwin-install-ninja.yml
|
- template: azure-pipelines/windows-install-ninja.yml
|
||||||
- template: azure-pipelines/configure.yml
|
- template: azure-pipelines/configure.yml
|
||||||
parameters:
|
parameters:
|
||||||
beforeConfigure: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
beforeConfigure: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
|
||||||
|
defaultLibrary: shared
|
||||||
|
backend: ninja
|
||||||
|
- template: azure-pipelines/build-ninja.yml
|
||||||
|
parameters:
|
||||||
|
beforeBuild: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
|
||||||
|
- template: azure-pipelines/windows-artifacts.yml
|
||||||
|
parameters:
|
||||||
|
os: windows
|
||||||
|
arch: 386
|
||||||
|
toolchain: msvc2017
|
||||||
|
libtype: shared
|
||||||
|
libfiles: libui.dll libui.exp libui.lib
|
||||||
|
osHeader: ui_windows.h
|
||||||
|
|
||||||
|
- job: windows_386_msvc2017_static_ninja
|
||||||
|
displayName: 'Windows 386 MSVC2017 Static Ninja'
|
||||||
|
pool:
|
||||||
|
vmImage: 'vs2017-win2016'
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- template: azure-pipelines/setup-python3.yml
|
||||||
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
|
- template: azure-pipelines/windows-install-ninja.yml
|
||||||
|
- template: azure-pipelines/configure.yml
|
||||||
|
parameters:
|
||||||
|
beforeConfigure: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
|
||||||
defaultLibrary: static
|
defaultLibrary: static
|
||||||
backend: ninja
|
backend: ninja
|
||||||
- template: azure-pipelines/build-ninja.yml
|
- template: azure-pipelines/build-ninja.yml
|
||||||
parameters:
|
parameters:
|
||||||
beforeBuild: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
beforeBuild: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
|
||||||
- template: azure-pipelines/darwinunix-artifacts.yml
|
afterBuild: ren build\meson-out\libui.a build\meson-out\libui.lib
|
||||||
|
- template: azure-pipelines/windows-artifacts.yml
|
||||||
parameters:
|
parameters:
|
||||||
os: darwin
|
os: windows
|
||||||
arch: amd64
|
arch: 386
|
||||||
|
toolchain: msvc2017
|
||||||
libtype: static
|
libtype: static
|
||||||
libfiles: libui.a
|
libfiles: libui.lib
|
||||||
osHeader: ui_darwin.h
|
osHeader: ui_windows.h
|
||||||
|
|
||||||
# }
|
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
beforeBuild: ''
|
beforeBuild: ''
|
||||||
|
afterBuild: ''
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
${{ parameters.beforeBuild }}
|
${{ parameters.beforeBuild }}
|
||||||
ninja -C build
|
ninja -C build
|
||||||
|
${{ parameters.afterBuild }}
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
# 6 april 2019
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
os: ''
|
||||||
|
arch: ''
|
||||||
|
toolchain: ''
|
||||||
|
libtype: ''
|
||||||
|
libfiles: ''
|
||||||
|
osHeader: ''
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- powershell: |
|
||||||
|
echo $PSVersionTable
|
||||||
|
Set-PSDebug
|
||||||
|
pushd build\meson-out
|
||||||
|
Copy-Item @("..\..\ui.h","..\..\${{ parameters.osHeader }}") -Destination .
|
||||||
|
Compress-Archive $(Build.ArtifactStagingDirectory)\libui-$(Build.SourceBranchName)-${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.toolchain }}-${{ parameters.libtype }}.zip -Path $("${{ parameters.libfiles }}",ui.h,${{ parameters.osHeader}})
|
||||||
|
Compress-Archive -Destination $(Build.ArtifactStagingDirectory)\examples-$(Build.SourceBranchName)-${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }}.zip -Path @("$(releaseExamples)".Split(" ") | % {$_ + ".exe"})
|
||||||
|
del ui.h ${{ parameters.osHeader }}
|
||||||
|
popd
|
||||||
|
displayName: 'Create Artifacts'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathToPublish: $(Build.ArtifactStagingDirectory)
|
||||||
|
artifactName: ${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }}
|
|
@ -0,0 +1,116 @@
|
||||||
|
# 31 march 2019
|
||||||
|
|
||||||
|
variables:
|
||||||
|
releaseExamples: 'controlgallery cpp-multithread datetime drawtext histogram tester timer'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: linux_amd64_shared_ninja
|
||||||
|
displayName: 'Linux amd64 Shared with Ninja'
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- template: azure-pipelines/setup-python3.yml
|
||||||
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
|
- script: |
|
||||||
|
sudo apt-get install libgtk-3-dev ninja-build
|
||||||
|
displayName: 'Install Dependencies'
|
||||||
|
- template: azure-pipelines/configure.yml
|
||||||
|
parameters:
|
||||||
|
defaultLibrary: shared
|
||||||
|
backend: ninja
|
||||||
|
- template: azure-pipelines/build-ninja.yml
|
||||||
|
- template: azure-pipelines/darwinunix-artifacts.yml
|
||||||
|
parameters:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
libtype: shared
|
||||||
|
libfiles: libui.so.0
|
||||||
|
osHeader: ui_unix.h
|
||||||
|
|
||||||
|
- job: linux_amd64_static_ninja
|
||||||
|
displayName: 'Linux amd64 Static with Ninja'
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- template: azure-pipelines/setup-python3.yml
|
||||||
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
|
- script: |
|
||||||
|
sudo apt-get install libgtk-3-dev ninja-build
|
||||||
|
displayName: 'Install Dependencies'
|
||||||
|
- template: azure-pipelines/configure.yml
|
||||||
|
parameters:
|
||||||
|
defaultLibrary: static
|
||||||
|
backend: ninja
|
||||||
|
- template: azure-pipelines/build-ninja.yml
|
||||||
|
- template: azure-pipelines/darwinunix-artifacts.yml
|
||||||
|
parameters:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
libtype: static
|
||||||
|
libfiles: libui.a
|
||||||
|
osHeader: ui_unix.h
|
||||||
|
|
||||||
|
# mac {
|
||||||
|
|
||||||
|
# notes:
|
||||||
|
# [18:36:55] <@jpakkane> Don't use the xcode backend for anything serious, it's a bit crap.
|
||||||
|
|
||||||
|
# TODO macosx10.14 doesn't work; it just uses the default SDK
|
||||||
|
|
||||||
|
- job: darwin_amd64_1014sdk_shared_ninja
|
||||||
|
displayName: 'Darwin amd64 10.14 SDK Shared with Ninja'
|
||||||
|
pool:
|
||||||
|
vmImage: 'macos-10.13'
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- template: azure-pipelines/setup-python3.yml
|
||||||
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
|
- template: azure-pipelines/darwin-install-ninja.yml
|
||||||
|
- template: azure-pipelines/configure.yml
|
||||||
|
parameters:
|
||||||
|
beforeConfigure: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
||||||
|
defaultLibrary: shared
|
||||||
|
backend: ninja
|
||||||
|
- template: azure-pipelines/build-ninja.yml
|
||||||
|
parameters:
|
||||||
|
beforeBuild: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
||||||
|
- template: azure-pipelines/darwinunix-artifacts.yml
|
||||||
|
parameters:
|
||||||
|
os: darwin
|
||||||
|
arch: amd64
|
||||||
|
libtype: shared
|
||||||
|
libfiles: libui.A.dylib
|
||||||
|
osHeader: ui_darwin.h
|
||||||
|
|
||||||
|
- job: darwin_amd64_1014sdk_static_ninja
|
||||||
|
displayName: 'Darwin amd64 10.14 SDK Static with Ninja'
|
||||||
|
pool:
|
||||||
|
vmImage: 'macos-10.13'
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- template: azure-pipelines/setup-python3.yml
|
||||||
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
|
- template: azure-pipelines/darwin-install-ninja.yml
|
||||||
|
- template: azure-pipelines/configure.yml
|
||||||
|
parameters:
|
||||||
|
beforeConfigure: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
||||||
|
defaultLibrary: static
|
||||||
|
backend: ninja
|
||||||
|
- template: azure-pipelines/build-ninja.yml
|
||||||
|
parameters:
|
||||||
|
beforeBuild: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
||||||
|
- template: azure-pipelines/darwinunix-artifacts.yml
|
||||||
|
parameters:
|
||||||
|
os: darwin
|
||||||
|
arch: amd64
|
||||||
|
libtype: static
|
||||||
|
libfiles: libui.a
|
||||||
|
osHeader: ui_darwin.h
|
||||||
|
|
||||||
|
# }
|
Loading…
Reference in New Issue