Skip to content

Commit af71611

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 af71611

File tree

3 files changed

+54
-68
lines changed

3 files changed

+54
-68
lines changed

.github/workflows/unit-tests.yml

Lines changed: 54 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,59 @@ env:
2727
ADDITIONAL_CMAKE_FLAGS: -DRTTR_ENABLE_BENCHMARKS=ON
2828

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