Skip to content

Commit c4c99fe

Browse files
authored
Merge pull request #351 from Nordix/ci-updates
CI updates
2 parents 24bc9a0 + d115d0c commit c4c99fe

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ jobs:
4242
name: macOS
4343
runs-on: macos-14
4444
steps:
45-
- name: Prepare
46-
run: |
47-
brew install ninja
4845
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4946
- name: Build and run tests
5047
run: |

.github/workflows/weekly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
clang-version: [5, 7, 9, 11, 13, 15, 17, 18, 19]
21+
clang-version: [5, 7, 9, 11, 13, 15, 17, 19, 20]
2222
steps:
2323
- name: Setup Clang
2424
uses: aminya/setup-cpp@a276e6e3d1db9160db5edc458e99a30d3b109949 # v1.7.1
@@ -204,7 +204,7 @@ jobs:
204204
strategy:
205205
fail-fast: false
206206
matrix:
207-
version: [2019, 2022]
207+
version: [2022, 2025]
208208
steps:
209209
- uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
210210
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

test/monster_test_cpp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
include(CTest)
22

33
# Note: This re-uses the samples/monster fbs and .c file.
4+
# According to the C++ standard Section 6.9.3.1 of ISO/IEC 14882:2024
5+
# "an entity named main with C language linkage (in any namespace) is ill-formed"
6+
# Let's disable the warning from Clang that we include main() using extern "C".
7+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
8+
add_compile_options(-Wno-main)
9+
endif()
410

511
set(INC_DIR "${PROJECT_SOURCE_DIR}/include")
612
# We use our own separate gen dir so we don't clash with the real monster sample.

0 commit comments

Comments
 (0)