Skip to content

Commit

Permalink
Fix CI CMake configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
nealkruis committed Dec 26, 2023
1 parent 2660b4d commit eaba2a9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ jobs:
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/build
# - name: Set coverage variables
# id: cov
# run: |
# if ${{matrix.coverage}}; then
# echo "COVERAGE=ON" >> $GITHUB_OUTPUT
# echo "STATIC_LIB=OFF" >> $GITHUB_OUTPUT
# else
# echo "COVERAGE=OFF" >> $GITHUB_OUTPUT
# echo "STATIC_LIB=ON" >> $GITHUB_OUTPUT
# fi
- name: Set coverage variables
id: cov
run: |
if ${{matrix.coverage}}; then
echo "COVERAGE=ON" >> $GITHUB_OUTPUT
echo "STATIC_LIB=OFF" >> $GITHUB_OUTPUT
else
echo "COVERAGE=OFF" >> $GITHUB_OUTPUT
echo "STATIC_LIB=ON" >> $GITHUB_OUTPUT
fi
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE="${{ matrix.config }}" -D${{ env.REPOSITORY_NAME }}_BUILD_TESTING="ON" -D${{ env.REPOSITORY_NAME }}_STATIC_LIB="${{ steps.cov.outputs.STATIC_LIB }}" -D${{ env.REPOSITORY_NAME }}_COVERAGE="${{ steps.cov.outputs.COVERAGE }}"
- name: Build
Expand Down

0 comments on commit eaba2a9

Please sign in to comment.