mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-09-01 08:09:19 +02:00
95 lines
2.4 KiB
YAML
95 lines
2.4 KiB
YAML
version: '{build}'
|
|
|
|
# Build on both Windows and Linux
|
|
image:
|
|
- Visual Studio 2022
|
|
- Ubuntu2404
|
|
|
|
# Używamy własnych kroków build
|
|
build: off
|
|
|
|
# Zmienna z konfiguracją (Windows)
|
|
environment:
|
|
CONFIG: RelWithDebInfo
|
|
|
|
# Per-image build steps: Windows uses cmd:, Linux uses sh:
|
|
for:
|
|
|
|
# ------------------------------------------------------------------ Windows
|
|
- matrix:
|
|
only:
|
|
- image: Visual Studio 2022
|
|
|
|
init:
|
|
- cmd: |
|
|
echo Build worker: %APPVEYOR_BUILD_WORKER_IMAGE%
|
|
ver
|
|
|
|
install:
|
|
- cmd: |
|
|
git submodule update --init --recursive
|
|
call setup-ci.bat
|
|
|
|
before_build:
|
|
- cmd: |
|
|
if not exist build mkdir build
|
|
cd build
|
|
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%CONFIG% -DPython3_ROOT_DIR=C:/Python314-x64
|
|
|
|
build_script:
|
|
- cmd: |
|
|
cmake --build . --config %CONFIG% --parallel
|
|
cd ..
|
|
|
|
after_build:
|
|
- cmd: |
|
|
echo Copying shaders...
|
|
if not exist build\bin\%CONFIG%\shaders mkdir build\bin\%CONFIG%\shaders
|
|
xcopy /E /Y shaders build\bin\%CONFIG%\shaders\
|
|
|
|
artifacts:
|
|
- path: build\bin\%CONFIG%\*.exe
|
|
name: binaries
|
|
- path: build\pdb\%CONFIG%\*.pdb
|
|
name: symbols
|
|
- path: build\bin\%CONFIG%\shaders
|
|
name: shaders
|
|
|
|
# ------------------------------------------------------------------ Linux
|
|
- matrix:
|
|
only:
|
|
- image: Ubuntu2404
|
|
|
|
init:
|
|
- sh: |
|
|
echo "Build worker: $APPVEYOR_BUILD_WORKER_IMAGE"
|
|
uname -a
|
|
|
|
install:
|
|
- sh: |
|
|
git submodule update --init --recursive
|
|
sudo apt-get update -y
|
|
sudo apt-get install -y libglfw3-dev libpng-dev libopenal-dev libluajit-5.1-dev libserialport-dev libsndfile1-dev
|
|
# the image's Python 3.14 lacks embeddable headers/libpython; fetch a
|
|
# standalone CPython (with Development.Embed) via uv
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
"$HOME/.local/bin/uv" python install 3.14
|
|
|
|
build_script:
|
|
- sh: |
|
|
PYTHON=$("$HOME/.local/bin/uv" python find 3.14)
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_ZMQ=OFF -DWITH_OPENVR=OFF -DWITH_BETTER_RENDERER=OFF -DUSE_LTO=ON -DPython3_EXECUTABLE="$PYTHON"
|
|
cmake --build . --parallel
|
|
cd ..
|
|
|
|
after_build:
|
|
- sh: |
|
|
mkdir -p build/bin/shaders
|
|
cp -r shaders/. build/bin/shaders/ || true
|
|
|
|
artifacts:
|
|
- path: build/bin
|
|
name: binaries_linux
|