Skip to content

Commit

Permalink
fix boolean handling?
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Nov 1, 2023
1 parent 6da2034 commit 1d58a3b
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/reusable_checks_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,27 @@ permissions:
jobs:
matrix_prep:
runs-on: ubuntu-latest
# Workaround for https://github.com/actions/runner/issues/2831
env:
FULL: ${{ github.event.inputs.FULL }}
outputs:
MATRIX: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}
- name: Load C++ test matrix
id: set-matrix
run: |
echo "full: $FULL"
if [$FULL == 'true']; then
echo "Loading full matrix $(jq -c -s . < ./.github/workflows/cpp_matrix_full.json)"
echo "matrix=$(jq -c . < ./.github/workflows/cpp_matrix_full.json)" >> $GITHUB_OUTPUT
else
echo "Loading partial matrix $(jq -c -s . < ./.github/workflows/cpp_matrix_partial.json)"
echo "matrix=$(jq -c . < ./.github/workflows/cpp_matrix_partial.json)" >> $GITHUB_OUTPUT
fi
- name: Load C++ test matrix
id: set-matrix
# Workaround for https://github.com/actions/runner/issues/2831
env:
FULL: ${{ github.event.inputs.FULL }}
run: |
echo "full: ${{ env.FULL }}"
if [${{ env.FULL }} == "true"]; then
echo "matrix=$(jq -c . < ./.github/workflows/cpp_matrix_full.json)" >> $GITHUB_OUTPUT
else
echo "matrix=$(jq -c . < ./.github/workflows/cpp_matrix_partial.json)" >> $GITHUB_OUTPUT
fi
cpp-tests:
name: Build rerun-cli (${{ matrix.runner }})
name: C++ build & test @ ${{ matrix.runner }}
needs: matrix_prep
strategy:
matrix: ${{ fromJson(needs.matrix_prep.outputs.MATRIX) }}
Expand Down

0 comments on commit 1d58a3b

Please sign in to comment.