Okay, so MinGW-w64 on Azure Pipelines is a non-starter. Let's find out what the macOS SDKs are *actually* called.
This commit is contained in:
parent
23a0a041f0
commit
efd7e8d07d
|
@ -4,60 +4,31 @@ variables:
|
|||
releaseExamples: 'controlgallery cpp-multithread datetime drawtext histogram tester timer'
|
||||
|
||||
jobs:
|
||||
- job: windows_386_mingw_static
|
||||
displayName: 'Windows 386 MinGW-w64 Static'
|
||||
- job: darwin_amd64_1014sdk_shared
|
||||
displayName: 'Darwin amd64 10.14 SDK Shared'
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
vmImage: 'macos-10.13'
|
||||
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/windows-setup-mingw.yml
|
||||
parameters:
|
||||
which: mingw32
|
||||
- template: azure-pipelines/darwin-install-ninja.yml
|
||||
- script: |
|
||||
xcodebuild -showsdks
|
||||
exit 1
|
||||
displayName: "Help"
|
||||
- template: azure-pipelines/configure.yml
|
||||
parameters:
|
||||
defaultLibrary: static
|
||||
beforeConfigure: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
||||
defaultLibrary: shared
|
||||
- template: azure-pipelines/build.yml
|
||||
parameters:
|
||||
afterBuild: dir build\meson-out
|
||||
# afterBuild: ren build\meson-out\libui.a libui.lib
|
||||
# - template: azure-pipelines/windows-artifacts.yml
|
||||
# parameters:
|
||||
# os: windows
|
||||
# arch: 386
|
||||
# toolchain: mingw
|
||||
# libtype: static
|
||||
# libfiles: libui.lib
|
||||
# osHeader: ui_windows.h
|
||||
|
||||
- job: windows_amd64_mingw_static
|
||||
displayName: 'Windows amd64 MinGW-w64 Static'
|
||||
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/windows-setup-mingw.yml
|
||||
beforeBuild: export SDKROOT=$(xcodebuild -version -sdk macosx10.14 Path)
|
||||
- template: azure-pipelines/darwinunix-artifacts.yml
|
||||
parameters:
|
||||
which: mingw64
|
||||
- template: azure-pipelines/configure.yml
|
||||
parameters:
|
||||
defaultLibrary: static
|
||||
- template: azure-pipelines/build.yml
|
||||
parameters:
|
||||
afterBuild: dir build\meson-out
|
||||
# afterBuild: ren build\meson-out\libui.a libui.lib
|
||||
# - template: azure-pipelines/windows-artifacts.yml
|
||||
# parameters:
|
||||
# os: windows
|
||||
# arch: amd64
|
||||
# toolchain: mingw
|
||||
# libtype: static
|
||||
# libfiles: libui.lib
|
||||
# osHeader: ui_windows.h
|
||||
os: darwin
|
||||
arch: amd64
|
||||
libtype: shared
|
||||
libfiles: libui.A.dylib
|
||||
osHeader: ui_darwin.h
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
# 7 april 2019
|
||||
|
||||
parameters:
|
||||
which: 'must-be-specified'
|
||||
|
||||
steps:
|
||||
- powershell: |
|
||||
Set-PSDebug -Trace 2
|
||||
ls "$env:ChocolateyInstall\lib\mingw\tools\install"
|
||||
where.exe mingw32-make.exe | Write-Host
|
||||
where.exe gcc.exe | Write-Host
|
||||
$chocopath = where.exe choco.exe | Get-Item
|
||||
# apparently they didn't think to add this functionality from the start (multiple joins was only added in PowerShell 6 and Azure Pipelines is using 5.x), and the direct-CLR approach actually behaves differently (and I would need to check which version of .net Azure Pipelines is using anyway, since our use case isn't one of those cases where it behaves differently)
|
||||
$chocopath = Join-Path -Path $chocopath.Directory -ChildPath "install" | Join-Path -ChildPath "${{ parameters.which }}" | Join-Path -ChildPath "bin"
|
||||
ls $chocopath
|
||||
Write-Error "##vso[task.prependpath]$chocopath"
|
||||
exit 1
|
||||
displayName: 'Set Up MinGW-w64'
|
Loading…
Reference in New Issue