From 8a76981200979b1803869ee9e6e78cc5e0751ab3 Mon Sep 17 00:00:00 2001 From: gitlost Date: Sat, 18 Apr 2026 23:43:18 +0100 Subject: [PATCH] testcommon: need for WIFEXITED/WEXITSTATUS CI: try Qt6 for mac; checkout@v4 -> v6 --- .github/workflows/ci.yml | 22 +++++++++++----------- backend/tests/testcommon.c | 3 +++ frontend/tests/test_args.c | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2a72ebc..2f3bf756 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ name: CI -# .github/workflows/ci.yml 2025-12-09 +# .github/workflows/ci.yml 2026-04-18 # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch (or test branch github_ci push) on: @@ -20,7 +20,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install libpng-dev run: sudo apt-get install libpng-dev @@ -64,7 +64,7 @@ jobs: BUILD_TYPE: Debug steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install libpng-dev run: sudo apt-get install libpng-dev @@ -105,7 +105,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Create Build Environment shell: bash @@ -164,7 +164,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Create Build Environment shell: bash @@ -221,7 +221,7 @@ jobs: runs-on: macOS-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Create Build Environment shell: bash @@ -231,9 +231,9 @@ jobs: shell: bash run: brew install libpng - - name: Install Qt5 + - name: Install Qt6 shell: bash - run: brew install qt5 + run: brew install qt6 - name: Install GS1 Syntax Engine run: git clone --depth=1 https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make lib && (sudo make install || true) @@ -241,7 +241,7 @@ jobs: - name: Configure CMake working-directory: build shell: bash - run: PATH=$PATH:/opt/homebrew/opt/qt@5/bin cmake $GITHUB_WORKSPACE -DCMAKE_C_FLAGS='-I /usr/local/include' -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON + run: PATH=$PATH:/opt/homebrew/opt/qt@6/bin cmake $GITHUB_WORKSPACE -DCMAKE_C_FLAGS='-I /usr/local/include' -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_QT6=ON - name: Build working-directory: build @@ -257,7 +257,7 @@ jobs: runs-on: macOS-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Create Build Environment shell: bash @@ -282,7 +282,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build FreeBSD id: build-freebsd diff --git a/backend/tests/testcommon.c b/backend/tests/testcommon.c index f1271a2d..6dc5c1da 100644 --- a/backend/tests/testcommon.c +++ b/backend/tests/testcommon.c @@ -47,6 +47,9 @@ #include #include #include +#ifndef _WIN32 +#include /* For WIFEXITED/WEXITSTATUS */ +#endif #include "testcommon.h" #include "../eci.h" diff --git a/frontend/tests/test_args.c b/frontend/tests/test_args.c index 00b95cb2..b967aba4 100644 --- a/frontend/tests/test_args.c +++ b/frontend/tests/test_args.c @@ -30,7 +30,7 @@ /* SPDX-License-Identifier: BSD-3-Clause */ #ifndef _WIN32 -#include +#include /* For WIFEXITED/WEXITSTATUS */ #endif #include "testcommon.h"