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`
This commit is contained in:
Rick Newton-Rogers authored and GitHub committed 2025-03-14 16:24:46 +00:00
1 parent 4582f55c0d
commit dc06cf85f3
1 file changed
+4 -2
+4 -2
View File
@@ -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