From 111addd6b2aa55e598d5cb98ad7d6de1f60c9632 Mon Sep 17 00:00:00 2001 From: Lars Ivar Hatledal Date: Thu, 23 Oct 2025 14:22:01 +0200 Subject: [PATCH 1/2] BUILD_TESTS=OFF on darwin --- .github/workflows/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 3f819f6..2acb8e4 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -96,5 +96,5 @@ jobs: - name: Configure and build run: | - cmake . -B build -DSIMPLE_SOCKET_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE="Release" + cmake . -B build -DSIMPLE_SOCKET_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE="Release" cmake --build build From f46471c6f9cece0f975c1e565caa3a191630860f Mon Sep 17 00:00:00 2001 From: Lars Ivar Hatledal Date: Thu, 23 Oct 2025 14:24:16 +0200 Subject: [PATCH 2/2] add a minimal ci build job all options = OFF --- .github/workflows/config.yml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 2acb8e4..49f7a4a 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -1,7 +1,6 @@ - name: Build -on: [push, workflow_dispatch] +on: [ push, workflow_dispatch ] jobs: linux: @@ -60,6 +59,30 @@ jobs: cd build/tests ctest --output-on-failure + linux-minimal: + + runs-on: ${{ matrix.os }} + env: + CC: gcc-${{ matrix.compiler_version }} + CXX: g++-${{ matrix.compiler_version }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-22.04 ] + compiler_version: [ 11 ] + + steps: + - uses: actions/checkout@v3 + + - name: Configure and build + run: | + cmake . -B build -DSIMPLE_SOCKET_BUILD_TESTS=ON -DSIMPLE_SOCKET_WITH_TLS=OFF -DSIMPLE_SOCKET_WITH_MQTT=OFF -DSIMPLE_SOCKET_WITH_MODBUS=OFF -DCMAKE_BUILD_TYPE="Release" + cmake --build build + + - name: Test + run: | + cd build/tests + ctest --output-on-failure windows: @@ -67,7 +90,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-2022] + os: [ windows-2022 ] steps: - uses: actions/checkout@v3 @@ -89,7 +112,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-14] + os: [ macos-14 ] steps: - uses: actions/checkout@v3