Skip to content

Commit

Permalink
Modernize AppVeyor configuration
Browse files Browse the repository at this point in the history
- Update to Visual Studio 2022
- Deprecate Ubuntu x86
  • Loading branch information
Xottab-DUTY committed Feb 15, 2024
1 parent ebe29b7 commit 92c550c
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ skip_tags: true
skip_branch_with_pr: true

image:
- Visual Studio 2019
- Visual Studio 2022
- Ubuntu

configuration:
Expand All @@ -26,6 +26,8 @@ branches:

matrix:
exclude:
- image: Ubuntu
platform: x86
- image: Ubuntu
configuration: Mixed
- image: Ubuntu
Expand All @@ -38,16 +40,20 @@ for:
-
matrix:
only:
- image: Visual Studio 2019
- image: Visual Studio 2022

before_build:
- git submodule update --init --recursive
- nuget restore src\engine.sln

build:
project: src/engine.sln
parallel: true
verbosity: minimal

after_build:
- cmd: misc/windows/xr_pack_build.cmd "%CONFIGURATION%" "%PLATFORM%"

artifacts:
- path: res/OpenXRay.*.7z
name: OpenXRay.*.7z
Expand All @@ -59,33 +65,21 @@ for:
matrix:
only:
- image: Ubuntu

before_build:
- sudo apt-get update
- sudo apt-get install -y libsdl2-dev libglew-dev liblzo2-dev libjpeg-dev libopenal-dev libogg-dev libtheora-dev libvorbis-dev
- git submodule update --init --recursive
- git submodule deinit Externals/cryptopp

build_script:
- export CC=gcc-8
- export CXX=g++-8
- ${CXX} --version
- cmake --version
- export core_count=$(nproc || echo 4) && echo core_count = $core_count
- mkdir bin
- cd bin
- sh: |
if [ "$PLATFORM" = "x64" ]; then
sudo apt-get update &&
sudo apt-get install -y libsdl2-dev libglew-dev liblzo2-dev libjpeg-dev &&
sudo apt-get install -y libopenal-dev libogg-dev libtheora-dev libvorbis-dev &&
CFLAGS="-w" CXXFLAGS="-w" cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION
fi
- sh: |
if [ "$PLATFORM" = "x86" ]; then
sudo dpkg --add-architecture i386 && sudo apt-get -qq update && sudo apt-get remove -y libllvm10 libgl1 libgl1-mesa-dri && sudo apt-get install -y gcc-multilib g++-8-multilib &&
sudo apt-get install -y libsdl2-dev:i386 libglew-dev:i386 liblzo2-dev:i386 libjpeg-dev:i386 &&
sudo apt-get install -y libopenal-dev:i386 libogg-dev:i386 libtheora-dev:i386 libvorbis-dev:i386 &&
CFLAGS="-m32 -w" CXXFLAGS="-m32 -w" cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=i386 -DCMAKE_ASM_FLAGS=-m32
fi
- make -j $core_count package
- CFLAGS="-w" CXXFLAGS="-w" cmake -B build -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION
- cmake --build build --config $BUILD_CONFIGURATION --parallel $core_count
- cpack -B artifacts -C $BUILD_CONFIGURATION -DCPACK_THREADS=$core_count
- file openxray_1.6.02_*.deb

artifacts:
- path: bin/openxray_1.6.02_*.deb
name: openxray_1.6.02_*.deb
Expand Down

0 comments on commit 92c550c

Please sign in to comment.