11 changed files with 181 additions and 70 deletions
@ -0,0 +1,42 @@ |
|||||||
|
name: Windows MSVC x64 |
||||||
|
|
||||||
|
on: |
||||||
|
push: |
||||||
|
branches: |
||||||
|
- master |
||||||
|
pull_request: |
||||||
|
types: [ opened, synchronize ] |
||||||
|
|
||||||
|
jobs: |
||||||
|
build: |
||||||
|
runs-on: windows-latest |
||||||
|
steps: |
||||||
|
- name: Checkout |
||||||
|
uses: actions/checkout@v3 |
||||||
|
with: |
||||||
|
fetch-depth: 0 |
||||||
|
|
||||||
|
- name: ccache |
||||||
|
uses: hendrikmuhs/ccache-action@v1.2 |
||||||
|
|
||||||
|
- name: Install latest CMake |
||||||
|
uses: lukka/get-cmake@latest |
||||||
|
|
||||||
|
- name: Restore or setup vcpkg |
||||||
|
uses: lukka/run-vcpkg@v10 |
||||||
|
with: |
||||||
|
vcpkgGitCommitId: '98f8d00e89fb6a8019c2045cfa1edbe9d92d3405' |
||||||
|
|
||||||
|
- name: Run CMake consuming CMakePresets.json and vcpkg.json by mean of vcpkg. |
||||||
|
uses: lukka/run-cmake@v10 |
||||||
|
with: |
||||||
|
configurePreset: 'ninja-vcpkg-debug' |
||||||
|
buildPreset: 'ninja-vcpkg-debug' |
||||||
|
testPreset: 'ninja-vcpkg-debug' |
||||||
|
|
||||||
|
- name: Upload-Package |
||||||
|
if: ${{ !env.ACT }} |
||||||
|
uses: actions/upload-artifact@v2 |
||||||
|
with: |
||||||
|
name: devilutionx.exe |
||||||
|
path: build-ninja-vcpkg-debug/devilutionx.exe |
||||||
@ -1,4 +1,4 @@ |
|||||||
name: Windows_x64 |
name: Windows MinGW x64 |
||||||
|
|
||||||
on: |
on: |
||||||
push: |
push: |
||||||
@ -1,4 +1,4 @@ |
|||||||
name: Windows_x86 |
name: Windows MinGW x86 |
||||||
|
|
||||||
on: |
on: |
||||||
push: |
push: |
||||||
@ -0,0 +1,41 @@ |
|||||||
|
name: Xbox One / Series |
||||||
|
|
||||||
|
on: |
||||||
|
push: |
||||||
|
branches: |
||||||
|
- master |
||||||
|
pull_request: |
||||||
|
types: [ opened, synchronize ] |
||||||
|
|
||||||
|
jobs: |
||||||
|
build: |
||||||
|
runs-on: windows-latest |
||||||
|
steps: |
||||||
|
- name: Checkout |
||||||
|
uses: actions/checkout@v3 |
||||||
|
with: |
||||||
|
fetch-depth: 0 |
||||||
|
|
||||||
|
- name: ccache |
||||||
|
uses: hendrikmuhs/ccache-action@v1.2 |
||||||
|
|
||||||
|
- name: Add msbuild to PATH |
||||||
|
uses: microsoft/setup-msbuild@v1.1 |
||||||
|
with: |
||||||
|
msbuild-architecture: x64 |
||||||
|
|
||||||
|
- name: Build |
||||||
|
shell: cmd |
||||||
|
run: | |
||||||
|
cd ${{ github.workspace }}\Packaging\xbox-one |
||||||
|
build.bat |
||||||
|
|
||||||
|
- name: Upload-Package |
||||||
|
if: ${{ !env.ACT }} |
||||||
|
uses: actions/upload-artifact@v3 |
||||||
|
with: |
||||||
|
name: devilutionx-xbox-one.zip |
||||||
|
if-no-files-found: error |
||||||
|
path: | |
||||||
|
build/uwp-project/AppxPackages/**/Microsoft.VCLibs.x64.*.appx |
||||||
|
build/uwp-project/Release/**/devilutionX_*_x64.appx |
||||||
@ -0,0 +1,84 @@ |
|||||||
|
{ |
||||||
|
"version": 3, |
||||||
|
"cmakeMinimumRequired": { |
||||||
|
"major": 3, |
||||||
|
"minor": 19, |
||||||
|
"patch": 0 |
||||||
|
}, |
||||||
|
"configurePresets": [ |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg", |
||||||
|
"displayName": "Ninja with VcPkg Configure Settings", |
||||||
|
"description": "Configure with vcpkg toolchain", |
||||||
|
"binaryDir": "${sourceDir}/build-${presetName}", |
||||||
|
"generator": "Ninja", |
||||||
|
"cacheVariables": { |
||||||
|
"CMAKE_TOOLCHAIN_FILE": { |
||||||
|
"type": "FILEPATH", |
||||||
|
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-debug", |
||||||
|
"displayName": "Ninja with VcPkg Configure Settings with CMAKE_BUILD_TYPE=RelWithDebInfo", |
||||||
|
"inherits": "ninja-vcpkg", |
||||||
|
"cacheVariables": { |
||||||
|
"CMAKE_BUILD_TYPE": "Debug" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-relwithdebinfo", |
||||||
|
"displayName": "Ninja with VcPkg Configure Settings with CMAKE_BUILD_TYPE=RelWithDebInfo", |
||||||
|
"inherits": "ninja-vcpkg", |
||||||
|
"cacheVariables": { |
||||||
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo" |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-discord-relwithdebinfo", |
||||||
|
"displayName": "Ninja with VcPkg Configure Settings with DISCORD_INTEGRATION=ON CMAKE_BUILD_TYPE=RelWithDebInfo", |
||||||
|
"inherits": "ninja-vcpkg-relwithdebinfo", |
||||||
|
"cacheVariables": { |
||||||
|
"DISCORD_INTEGRATION": { |
||||||
|
"type": "BOOL", |
||||||
|
"value": "ON" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
], |
||||||
|
"buildPresets": [ |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-debug", |
||||||
|
"configurePreset": "ninja-vcpkg-debug", |
||||||
|
"displayName": "Build ninja-vcpkg-debug", |
||||||
|
"description": "Build ninja-vcpkg-debug Configuration" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-relwithdebinfo", |
||||||
|
"configurePreset": "ninja-vcpkg-relwithdebinfo", |
||||||
|
"displayName": "Build ninja-vcpkg-relwithdebinfo", |
||||||
|
"description": "Build ninja-vcpkg-relwithdebinfo Configuration" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-discord-relwithdebinfo", |
||||||
|
"configurePreset": "ninja-vcpkg-discord-relwithdebinfo", |
||||||
|
"displayName": "Build ninja-vcpkg-discord-relwithdebinfo", |
||||||
|
"description": "Build ninja-vcpkg-discord-relwithdebinfo Configuration" |
||||||
|
} |
||||||
|
], |
||||||
|
"testPresets": [ |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-debug", |
||||||
|
"configurePreset": "ninja-vcpkg-debug" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-relwithdebinfo", |
||||||
|
"configurePreset": "ninja-vcpkg-relwithdebinfo" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "ninja-vcpkg-discord-relwithdebinfo", |
||||||
|
"configurePreset": "ninja-vcpkg-discord-relwithdebinfo" |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
@ -1,58 +0,0 @@ |
|||||||
version: 1.1.{build} |
|
||||||
|
|
||||||
pull_requests: |
|
||||||
do_not_increment_build_number: true |
|
||||||
environment: |
|
||||||
matrix: |
|
||||||
|
|
||||||
- job_name: windows |
|
||||||
appveyor_build_worker_image: Visual Studio 2022 |
|
||||||
|
|
||||||
- job_name: uwp |
|
||||||
appveyor_build_worker_image: Visual Studio 2022 |
|
||||||
|
|
||||||
for: |
|
||||||
- |
|
||||||
matrix: |
|
||||||
only: |
|
||||||
- job_name: windows |
|
||||||
|
|
||||||
cache: '%LOCALAPPDATA%\vcpkg\archives' |
|
||||||
|
|
||||||
install: |
|
||||||
- if not exist C:\Tools\vcpkg mkdir C:\Tools\vcpkg |
|
||||||
- cd C:\Tools\vcpkg |
|
||||||
- git pull |
|
||||||
- .\bootstrap-vcpkg.bat |
|
||||||
- cd %APPVEYOR_BUILD_FOLDER% |
|
||||||
|
|
||||||
before_build: |
|
||||||
- cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake . |
|
||||||
|
|
||||||
build: |
|
||||||
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln |
|
||||||
parallel: true |
|
||||||
verbosity: minimal |
|
||||||
|
|
||||||
artifacts: |
|
||||||
- path: Debug\devilutionx.exe |
|
||||||
name: devilutionx.exe |
|
||||||
|
|
||||||
- |
|
||||||
matrix: |
|
||||||
only: |
|
||||||
- job_name: uwp |
|
||||||
|
|
||||||
before_build: |
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%\Packaging\xbox-one |
|
||||||
- if exist ..\..\build rd /s /q ..\..\build |
|
||||||
|
|
||||||
build_script: |
|
||||||
- build.bat |
|
||||||
|
|
||||||
after_build: |
|
||||||
- cd %APPVEYOR_BUILD_FOLDER% |
|
||||||
|
|
||||||
artifacts: |
|
||||||
- path: devilutionx.zip |
|
||||||
name: devilutionx.zip |
|
||||||
Loading…
Reference in new issue