Skip to content

Commit 39650a0

Browse files
committed
Move Windows CI to GitHub Actions
The time limit of 1h is not enough to build the release version.
1 parent da67e6a commit 39650a0

File tree

3 files changed

+45
-68
lines changed

3 files changed

+45
-68
lines changed

.github/workflows/unit-tests.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2005 - 2023 Settlers Freaks <sf-team at siedler25.org>
1+
# Copyright (C) 2005 - 2024 Settlers Freaks <sf-team at siedler25.org>
22
#
33
# SPDX-License-Identifier: GPL-2.0-or-later
44

@@ -27,6 +27,50 @@ env:
2727
ADDITIONAL_CMAKE_FLAGS: -DRTTR_ENABLE_BENCHMARKS=ON
2828

2929
jobs:
30+
Windows:
31+
strategy:
32+
matrix:
33+
include:
34+
- { os: windows-2019, generator: Visual Studio 16 2019, type: Debug, platform: Win32}
35+
- { os: windows-2019, generator: Visual Studio 16 2019, type: Debug, platform: x64}
36+
- { os: windows-2019, generator: Visual Studio 16 2019, type: Release, platform: Win32}
37+
- { os: windows-2019, generator: Visual Studio 16 2019, type: Release, platform: x64}
38+
- { os: windows-2022, generator: Visual Studio 17 2022, type: Debug, platform: Win32}
39+
- { os: windows-2022, generator: Visual Studio 17 2022, type: Debug, platform: x64}
40+
- { os: windows-2022, generator: Visual Studio 17 2022, type: Release, platform: Win32}
41+
- { os: windows-2022, generator: Visual Studio 17 2022, type: Release, platform: x64}
42+
runs-on: ${{matrix.os}}
43+
steps:
44+
- uses: actions/checkout@v4
45+
with:
46+
submodules: true
47+
- name: Install boost
48+
uses: MarkusJx/[email protected]
49+
id: install-boost
50+
with:
51+
boost_version: ${{env.BOOST_VERSION}}
52+
platform_version: ${{matrix.os == 'windows-2019' && '2019' || '2022'}}
53+
toolset: msvc
54+
- name: 'Configure'
55+
env:
56+
BOOST_ROOT: ${{steps.install-boost.outputs.BOOST_ROOT}}
57+
shell: cmd
58+
run: |
59+
set "INSTALL_DIR=%GITHUB_WORKSPACE%\installed"
60+
mkdir build
61+
cd build
62+
rem Enable LTCG for release builds (speeds up linking as /GL compiled modules are used)
63+
if ${{matrix.type}} == Release (set "cmakeFlags=-DCMAKE_EXE_LINKER_FLAGS=/LTCG -DCMAKE_SHARED_LINKER_FLAGS=/LTCG")
64+
echo "Configuring ${{matrix.generator}} for ${{matrix.type}} on ${{matrix.platform}}"
65+
cmake -G "${{matrix.generator}}" -A ${{matrix.platform}} ^
66+
-DRTTR_ENABLE_WERROR=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ^
67+
-DRTTR_EXTERNAL_BUILD_TESTING=ON -DRTTR_ENABLE_BENCHMARKS=ON ^
68+
%cmakeFlags% ..
69+
- name: 'Build'
70+
run: cmake --build . --config ${{matrix.type}} --parallel 4
71+
- name: 'Test'
72+
run: ctest --output-on-failure -C ${{matrix.type}} --parallel 4
73+
3074
Linux:
3175
strategy:
3276
matrix:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ See more information on <http://www.rttr.info>
1818
## Current Build Info
1919

2020
Build & Tests:
21-
[![Appveyor CI Build Info](https://ci.appveyor.com/api/projects/status/ufw8v9mi80va1me7/branch/master?svg=true)](https://ci.appveyor.com/project/Flow86/s25client/branch/master)
2221
![GHA Unit tests](https://github.com/Return-To-The-Roots/s25client/workflows/Unit%20tests/badge.svg)
2322
![Static analysis](https://github.com/Return-To-The-Roots/s25client/workflows/Static%20analysis/badge.svg)
2423

appveyor.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)