mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 08:09:19 +02:00
Appveyor config
This commit is contained in:
115
appveyor.yml
115
appveyor.yml
@@ -1,71 +1,50 @@
|
|||||||
|
# Minimalny, powtarzalny pipeline pod MSVC + CMake
|
||||||
version: '{build}'
|
version: '{build}'
|
||||||
image: Visual Studio 2017
|
image: Visual Studio 2022
|
||||||
clone_depth: 1
|
|
||||||
|
# Użyjemy własnych skryptów zamiast automatycznego MSBuild AppVeyora
|
||||||
|
build: off
|
||||||
|
|
||||||
|
# Git + submoduły rekurencyjnie (odpowiednik --recursive)
|
||||||
|
shallow_clone: false
|
||||||
|
git:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
# Zmienna z konfiguracją — jak u Ciebie
|
||||||
|
environment:
|
||||||
|
CONFIG: RelWithDebInfo
|
||||||
|
|
||||||
|
# (Opcjonalnie) pokaż konfigurację środowiska na starcie
|
||||||
|
init:
|
||||||
|
- cmd: |
|
||||||
|
echo Build worker: %APPVEYOR_BUILD_WORKER_IMAGE%
|
||||||
|
ver
|
||||||
|
|
||||||
|
# Instalacja zależności jeśli robi to setup.bat
|
||||||
|
# (uruchamiane z katalogu repo — AppVeyor zrzuca tu źródła)
|
||||||
|
install:
|
||||||
|
- cmd: |
|
||||||
|
call setup.bat
|
||||||
|
|
||||||
|
# Konfiguracja CMake do osobnego katalogu build (x64, VS2022)
|
||||||
|
before_build:
|
||||||
|
- cmd: |
|
||||||
|
if not exist build mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%CONFIG%
|
||||||
|
|
||||||
|
# Kompilacja (paralelnie) wybranej konfiguracji
|
||||||
build_script:
|
build_script:
|
||||||
- ps: >-
|
- cmd: |
|
||||||
git submodule update --init --recursive
|
cmake --build build --config %CONFIG% --parallel
|
||||||
|
|
||||||
cd ref
|
# (Opcjonalnie) testy, jeśli masz dodane ctest
|
||||||
|
# test_script:
|
||||||
curl -o crashpad86.zip "http://get.backtrace.io/crashpad/builds/release/x86/crashpad-2020-07-01-release-x86-558c9614e3819179f30b92541450f5ac643afce5.zip"
|
# - cmd: ctest --test-dir build -C %CONFIG% --output-on-failure
|
||||||
|
|
||||||
7z x crashpad86.zip
|
# Artefakty: exe + pdb z katalogu bin (dopasuj ścieżki do swojego projektu)
|
||||||
|
|
||||||
move crashpad-2020-07-01-release-x86-558c9614e3819179f30b92541450f5ac643afce5 crashpad
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
mkdir build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
mkdir x86
|
|
||||||
|
|
||||||
cd x86
|
|
||||||
|
|
||||||
cmake ../.. -T v141_xp -DWITH_CRASHPAD=ON
|
|
||||||
|
|
||||||
cmake --build . --config RelWithDebInfo
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd ref
|
|
||||||
|
|
||||||
move crashpad crashpad_
|
|
||||||
|
|
||||||
curl -o crashpad64.zip "http://get.backtrace.io/crashpad/builds/release/x86-64/crashpad-2020-07-01-release-x64-558c9614e3819179f30b92541450f5ac643afce5.zip"
|
|
||||||
|
|
||||||
7z x crashpad64.zip
|
|
||||||
|
|
||||||
move crashpad-2020-07-01-release-x64-558c9614e3819179f30b92541450f5ac643afce5 crashpad
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
mkdir x64
|
|
||||||
|
|
||||||
cd x64
|
|
||||||
|
|
||||||
cmake ../.. -A x64
|
|
||||||
|
|
||||||
cmake --build . --config RelWithDebInfo
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
7z a eu07_x86_bin.zip ./x86/bin/RelWithDebInfo/*.exe
|
|
||||||
|
|
||||||
7z a eu07_x64_bin.zip ./x64/bin/RelWithDebInfo/*.exe
|
|
||||||
|
|
||||||
test: off
|
|
||||||
deploy: off
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: build/eu07_x86_bin.zip
|
- path: build\bin\%CONFIG%\*.exe
|
||||||
name: binaries_x86
|
name: binaries
|
||||||
- path: build/eu07_x64_bin.zip
|
- path: build\bin\%CONFIG%\*.pdb
|
||||||
name: binaries_x64
|
name: symbols
|
||||||
- path: shaders
|
|
||||||
name: shaders
|
|
||||||
type: zip
|
|
||||||
|
|||||||
Reference in New Issue
Block a user