Skip to content

Commit

Permalink
Use jq raw output
Browse files Browse the repository at this point in the history
  • Loading branch information
oxve committed Dec 27, 2024
1 parent a6faddb commit 29097d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ runs:
run: |
set -x
cd src
ninja -C out/${{ matrix.platform }}_${{ matrix.config }} $(echo "${TEST_TARGETS}" | jq -c '.test_targets | join(" ")')
ninja -C out/${{ matrix.platform }}_${{ matrix.config }} $(echo "${TEST_TARGETS}" | jq -cr '.test_targets | join(" ")')
shell: bash
- name: Ninja build
env:
TARGETS: ${{ inputs.targets }}
run: |
set -x
cd src
ninja -C out/${{ matrix.platform }}_${{ matrix.config }} $(echo "${TARGETS}" | tr -d '"')
ninja -C out/${{ matrix.platform }}_${{ matrix.config }} $(echo "${TARGETS}")
shell: bash
- name: Dump sccache stats
run: sccache -s
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/on_host_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ runs:
failed_suites=""
cd ${test_dir}
for test_binary_path in $(cat test_targets.json | jq -c '.executables | join(" ")'); do
for test_binary_path in $(cat test_targets.json | jq -cr '.executables | join(" ")'); do
test_binary=$(basename "${test_binary_path}")
echo "Running tests for suite: ${test_binary}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- id: set-targets
shell: bash
run: |
targets=$(cat ${GITHUB_WORKSPACE}/.github/config/${{ inputs.platform }}.json | jq -c '.targets | join(" ")')
targets=$(cat ${GITHUB_WORKSPACE}/.github/config/${{ inputs.platform }}.json | jq -cr '.targets | join(" ")')
echo "targets=${targets}" >> $GITHUB_ENV
- id: set-includes
shell: bash
Expand Down

0 comments on commit 29097d0

Please sign in to comment.