Skip to content

Commit

Permalink
Codechange: [CI] Move Release CI build to MacOS runner (OpenTTD#12309)
Browse files Browse the repository at this point in the history
  • Loading branch information
merni-ns authored Mar 16, 2024
1 parent fe12d38 commit 4c0dca1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@ jobs:
fail-fast: false
matrix:
include:
- name: Clang - Debug
- name: Clang
compiler: clang-15
cxxcompiler: clang++-15
libraries: libsdl2-dev
- name: Clang - Release
compiler: clang-15
cxxcompiler: clang++-15
libraries: libsdl2-dev
extra-cmake-parameters: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPTION_USE_ASSERTS=OFF
- name: GCC - SDL2
compiler: gcc
cxxcompiler: g++
Expand Down Expand Up @@ -61,17 +56,24 @@ jobs:
fail-fast: false
matrix:
include:
- arch: arm64
- name: arm64 - Debug
arch: arm64
full_arch: arm64
extra-cmake-parameters: -DCMAKE_BUILD=Debug
- name: arm64 - Release
arch: arm64
full_arch: arm64
extra-cmake-parameters: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPTION_USE_ASSERTS=OFF

name: Mac OS (${{ matrix.arch }})
name: Mac OS (${{ matrix.name }})

uses: ./.github/workflows/ci-macos.yml
secrets: inherit

with:
arch: ${{ matrix.arch }}
full_arch: ${{ matrix.full_arch }}
extra-cmake-parameters: ${{ matrix.extra-cmake-parameters }}

windows:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
full_arch:
required: true
type: string
extra-cmake-parameters:
required: false
type: string
default: ""

env:
CTEST_OUTPUT_ON_FAILURE: 1
Expand Down Expand Up @@ -66,6 +70,7 @@ jobs:
-DCMAKE_OSX_ARCHITECTURES=${{ inputs.full_arch }} \
-DVCPKG_TARGET_TRIPLET=${{ inputs.arch }}-osx \
-DCMAKE_TOOLCHAIN_FILE=${{ runner.temp }}/vcpkg/scripts/buildsystems/vcpkg.cmake \
${{ inputs.extra-cmake-parameters }} \
# EOF
echo "::endgroup::"
Expand Down

0 comments on commit 4c0dca1

Please sign in to comment.