From dc06cf85f3ffaa0e55941a2064765c2124b0152d Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Fri, 14 Mar 2025 16:24:46 +0000 Subject: [PATCH] install jq, use correct quotes (#3145) install jq, use correct quotes. Running this locally in `act` highlighted that it was always failing to find `jq` --- .github/workflows/cmake_tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake_tests.yml b/.github/workflows/cmake_tests.yml index 16f5b7b17..5046197b1 100644 --- a/.github/workflows/cmake_tests.yml +++ b/.github/workflows/cmake_tests.yml @@ -37,8 +37,10 @@ jobs: run: git config --global --add safe.directory ${GITHUB_WORKSPACE} - name: Check CMakeLists files run: | - which curl || (apt -q update && apt -yq install curl) - curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/update-cmake-lists.sh | CONFIG_JSON="${{ inputs.update_cmake_lists_config }}" FAIL_ON_CHANGES=true bash + which curl jq || apt -q update + which curl || apt -yq install curl + which jq || apt -yq install jq + curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/update-cmake-lists.sh | CONFIG_JSON='${{ inputs.update_cmake_lists_config }}' FAIL_ON_CHANGES=true bash - name: CMake build run: | which curl cmake ninja || apt -q update