Support appveyor

This commit is contained in:
momo5502 2021-02-16 19:50:43 +01:00
parent dda77ae52b
commit 2097075d14
2 changed files with 49 additions and 2 deletions

View File

@ -1,7 +1,7 @@
![license](https://img.shields.io/github/license/XLabsProject/s1x-client.svg)
[![open bugs](https://img.shields.io/github/issues/XLabsProject/s1x-client/bug?label=bugs)](https://github.com/XLabsProject/s1x-client/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
[![Build status](https://ci.appveyor.com/api/projects/status/8879fpad70wuo7h2/branch/develop?svg=true)](https://ci.appveyor.com/project/XLabsProject/s1x-client/branch/develop)
[![Build](https://github.com/XLabsProject/s1x-client/workflows/Build/badge.svg)](https://github.com/XLabsProject/s1x-client/actions)
[![Build status](https://ci.appveyor.com/api/projects/status/p49wb65n4he4m3h9/branch/master?svg=true)](https://ci.appveyor.com/project/XLabsProject/s1x-client/branch/develop)
<!--[![Build](https://github.com/XLabsProject/s1x-client/workflows/Build/badge.svg)](https://github.com/XLabsProject/s1x-client/actions)-->
[![discord](https://img.shields.io/endpoint?url=https://momo5502.com/iw4x/members-badge.php)](https://discord.gg/sKeVmR3)
[![patreon](https://img.shields.io/badge/patreon-support-blue.svg?logo=patreon)](https://www.patreon.com/xlabsproject)

47
appveyor.yml Normal file
View File

@ -0,0 +1,47 @@
# AppVeyor CI configuration
version: "#{build} ({branch})"
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PREMAKE_ACTION: vs2019
CI: 1
branches:
only:
- master
- develop
skip_branch_with_pr: true
# Doesn't work :(
#cache:
# - build
configuration:
- Debug
- Release
platform: x64
install:
- ps: |
Write-Host "Updating version information..." -ForegroundColor Cyan
Update-AppveyorBuild -Version $(& tools/premake5.exe version | select -Last 1)
- git submodule update --init --recursive
- ps: |
Write-Host "Generating project files with premake..." -ForegroundColor Cyan
& "./tools/premake5.exe" $env:PREMAKE_ACTION
Write-Host "Generated" -ForegroundColor Green
build:
project: build/s1x.sln
parallel: true
verbosity: minimal
artifacts:
# - path: build/version.txt
# - path: build/bin/**/iw6x.exe
# - path: build/bin/**/*.exe
# - path: build/bin/**/*.pdb