rom-properties/appveyor.yml
2025-05-10 16:41:45 -04:00

66 lines
1.7 KiB
YAML

# AppVeyor configuration file.
version: '2.5.1.{build}'
# Build worker image (VM template)
image:
- Visual Studio 2015
- Ubuntu2204
configuration:
- Debug
- Release
platform:
- x86
- x64
# TODO: Re-add MinGW-w64 compiler for Windows builds.
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# Don't build if source files aren't modified.
only_commits:
files:
- appveyor.yml
- '**/CMakeLists.txt'
- '**/*.cmd'
- '**/*.sh'
- extlib/**/*
- src/**/*
# Ignore the l10n_master branch from Crowdin.
branches:
except:
- l10n_master
# NOTE: Previously, we ran two builds: one with optional features
# turned on, and one with optional features turned on.
# AppVeyor has gotten to be very slow, and times out after 1 hour,
# so the OFF build has been removed.
# Run CMake with optional features turned off initially.
before_build:
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: appveyor.cmd ON
- sh: cd ${APPVEYOR_BUILD_FOLDER}
- sh: sudo ./appveyor-dpkg.sh
- sh: ./appveyor.sh ON
# Build once with optional features turned off,
# then build again with optional features turned on.
build_script:
- cmd: cd %APPVEYOR_BUILD_FOLDER%\build
- cmd: cmake --build . --config %CONFIGURATION%
- sh: cd ${APPVEYOR_BUILD_FOLDER}/build
- sh: cmake --build . --config ${CONFIGURATION}
test_script:
- cmd: cd %APPVEYOR_BUILD_FOLDER%\build
- cmd: ctest -V -C %CONFIGURATION%
- sh: cd ${APPVEYOR_BUILD_FOLDER}/build
- sh: LD_LIBRARY_PATH=${APPVEYOR_BUILD_FOLDER}/build/lib ctest -V -C ${CONFIGURATION}
after_test:
- cmd: cd %APPVEYOR_BUILD_FOLDER%\build
- cmd: ..\appveyor-artifacts.cmd