1
0
mirror of https://github.com/alkoleft/yaxunit-addin.git synced 2024-11-30 08:06:40 +02:00
yaxunit-addin/appveyor.yml

71 lines
1.8 KiB
YAML

# image:
# - Visual Studio 2022
# - Ubuntu
configuration: Release
# platform:
# - Win32
# - x64
environment:
APPVEYOR_YML_DISABLE_PS_LINUX: true
matrix:
- job_name: Build Linux x64
job_group: Build
appveyor_build_worker_image: Ubuntu
- job_name: Build Windows x86
job_group: Build
appveyor_build_worker_image: Visual Studio 2022
- job_name: Build Windows x64
job_group: Build
appveyor_build_worker_image: Visual Studio 2022
- job_name: Deploy
appveyor_build_worker_image: Visual Studio 2022
matrix:
fast_finish: true
# exclude:
# - image: Ubuntu
# TARGET_PLATFORM: Win32
install:
- sh: sudo apt install uuid-dev
build:
verbosity: minimal
for:
- matrix:
only:
- job_name: Build Linux x64
build_script:
- mkdir Builds/Release -p && cd ./Builds/Release
- cmake -DCMAKE_BUILD_TYPE=Release ../../; cmake --build .
after_build:
- sh: appveyor PushArtifact YaxUnitAddIn.so -DeploymentName binaries -FileName YaxUnitAddIn.so
- matrix:
only:
- job_name: Build Windows x86
before_build:
- ps: cmake -B Builds -G "Visual Studio 17 2022" -A Win32
after_build:
- ps: Push-AppveyorArtifact Builds/Release/YaxUnitAddIn.dll -DeploymentName binaries -FileName YaxUnitAddIn-x86.dll
- matrix:
only:
- job_name: Build Windows x64
before_build:
- ps: cmake -B Builds -G "Visual Studio 17 2022" -A x64
after_build:
- ps: Push-AppveyorArtifact Builds/Release/YaxUnitAddIn.dll -DeploymentName binaries -FileName YaxUnitAddIn-x64.dll
- matrix:
only:
- job_name: Deploy
build_script:
- ps: |
foreach ($artifactName in $artifacts.keys) {
Invoke-WebRequest -Uri $artifacts[$artifactName].url -OutFile $artifacts[$artifactName].path
}