2024-03-10 09:48:11 +00:00
|
|
|
name: CI - Build
|
2019-10-05 21:25:07 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
2020-12-13 21:32:44 +00:00
|
|
|
env:
|
|
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
|
|
|
|
2023-02-26 21:36:33 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
|
2019-10-05 21:25:07 +01:00
|
|
|
jobs:
|
2020-12-05 20:57:47 +00:00
|
|
|
emscripten:
|
|
|
|
name: Emscripten
|
|
|
|
|
2024-03-10 09:29:41 +00:00
|
|
|
uses: ./.github/workflows/ci-emscripten.yml
|
|
|
|
secrets: inherit
|
2020-12-05 20:57:47 +00:00
|
|
|
|
2019-10-05 21:25:07 +01:00
|
|
|
linux:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2024-03-16 14:11:23 +00:00
|
|
|
- name: Clang
|
2024-10-13 21:34:33 +01:00
|
|
|
compiler: clang
|
|
|
|
cxxcompiler: clang++
|
2023-08-28 18:04:36 +01:00
|
|
|
libraries: libsdl2-dev
|
2023-04-27 19:15:09 +01:00
|
|
|
- name: GCC - SDL2
|
|
|
|
compiler: gcc
|
2021-02-19 18:34:40 +00:00
|
|
|
cxxcompiler: g++
|
2023-08-28 18:04:36 +01:00
|
|
|
libraries: libsdl2-dev
|
2023-04-27 19:15:09 +01:00
|
|
|
- name: GCC - Dedicated
|
|
|
|
compiler: gcc
|
2021-03-03 17:26:09 +00:00
|
|
|
cxxcompiler: g++
|
2023-12-06 12:30:47 +00:00
|
|
|
libraries: grfcodec
|
2023-05-07 18:22:30 +01:00
|
|
|
extra-cmake-parameters: -DOPTION_DEDICATED=ON -DCMAKE_CXX_FLAGS_INIT="-DRANDOM_DEBUG" -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
2023-08-28 18:04:36 +01:00
|
|
|
# Compile without SDL / SDL2, as that should compile fine too.
|
2023-04-27 19:15:09 +01:00
|
|
|
|
|
|
|
name: Linux (${{ matrix.name }})
|
2020-12-13 21:32:44 +00:00
|
|
|
|
2024-03-10 09:29:41 +00:00
|
|
|
uses: ./.github/workflows/ci-linux.yml
|
|
|
|
secrets: inherit
|
2023-08-20 16:16:08 +01:00
|
|
|
|
2024-03-10 09:29:41 +00:00
|
|
|
with:
|
|
|
|
compiler: ${{ matrix.compiler }}
|
|
|
|
cxxcompiler: ${{ matrix.cxxcompiler }}
|
|
|
|
libraries: ${{ matrix.libraries }}
|
|
|
|
extra-cmake-parameters: ${{ matrix.extra-cmake-parameters }}
|
2023-12-06 12:30:47 +00:00
|
|
|
|
2020-12-13 21:32:44 +00:00
|
|
|
macos:
|
2019-10-05 21:25:07 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-12-13 21:32:44 +00:00
|
|
|
include:
|
2024-03-16 14:11:23 +00:00
|
|
|
- name: arm64 - Debug
|
|
|
|
arch: arm64
|
2024-03-10 08:33:47 +00:00
|
|
|
full_arch: arm64
|
2024-03-16 19:48:12 +00:00
|
|
|
extra-cmake-parameters: -DCMAKE_BUILD_TYPE=Debug
|
2024-03-16 14:11:23 +00:00
|
|
|
- name: arm64 - Release
|
|
|
|
arch: arm64
|
|
|
|
full_arch: arm64
|
|
|
|
extra-cmake-parameters: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPTION_USE_ASSERTS=OFF
|
2020-12-13 21:32:44 +00:00
|
|
|
|
2024-03-16 14:11:23 +00:00
|
|
|
name: Mac OS (${{ matrix.name }})
|
2023-04-27 19:15:09 +01:00
|
|
|
|
2024-03-10 09:29:41 +00:00
|
|
|
uses: ./.github/workflows/ci-macos.yml
|
|
|
|
secrets: inherit
|
2021-02-21 00:03:39 +00:00
|
|
|
|
2024-03-10 09:29:41 +00:00
|
|
|
with:
|
|
|
|
arch: ${{ matrix.arch }}
|
|
|
|
full_arch: ${{ matrix.full_arch }}
|
2024-03-16 14:11:23 +00:00
|
|
|
extra-cmake-parameters: ${{ matrix.extra-cmake-parameters }}
|
2019-10-05 21:25:07 +01:00
|
|
|
|
2020-12-13 21:32:44 +00:00
|
|
|
windows:
|
2019-10-05 21:25:07 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
2020-12-13 21:32:44 +00:00
|
|
|
matrix:
|
2024-03-10 09:29:41 +00:00
|
|
|
include:
|
2024-10-13 21:23:40 +01:00
|
|
|
- arch: x86
|
|
|
|
- arch: x64
|
2021-02-20 21:40:20 +00:00
|
|
|
|
2024-03-10 09:48:11 +00:00
|
|
|
name: Windows (${{ matrix.arch }})
|
2019-10-05 21:25:07 +01:00
|
|
|
|
2024-03-10 09:29:41 +00:00
|
|
|
uses: ./.github/workflows/ci-windows.yml
|
|
|
|
secrets: inherit
|
2021-05-10 13:48:04 +01:00
|
|
|
|
2024-03-10 09:29:41 +00:00
|
|
|
with:
|
|
|
|
arch: ${{ matrix.arch }}
|
2021-06-10 22:54:52 +01:00
|
|
|
|
2021-05-10 13:48:04 +01:00
|
|
|
check_annotations:
|
|
|
|
name: Check Annotations
|
|
|
|
needs:
|
|
|
|
- emscripten
|
|
|
|
- linux
|
|
|
|
- macos
|
|
|
|
- windows
|
|
|
|
|
|
|
|
if: always() && github.event_name == 'pull_request'
|
|
|
|
|
2021-05-20 18:12:33 +01:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-10 13:48:04 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check annotations
|
2024-01-25 21:22:33 +00:00
|
|
|
uses: OpenTTD/actions/annotation-check@v5
|