diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 764613b..e55645b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -82,7 +82,6 @@ jobs: uses: ./ with: source-dir: test - run-build: true run-test: true test-args: -R hello_world diff --git a/action.yml b/action.yml index a2ec7f3..c12b88b 100644 --- a/action.yml +++ b/action.yml @@ -83,7 +83,7 @@ runs: fi echo "cmake_args=${ARGS//[$'\t\r\n']}" >> $GITHUB_OUTPUT - if [ '${{ inputs.run-build }}' == 'true' ]; then + if [ '${{ inputs.run-build }}' == 'true' ] || [ '${{ inputs.run-test }}' == 'true' ]; then BUILD_ARGS="--build '$BUILD_DIR'" if [ -n '${{ inputs.build-args }}' ]; then BUILD_ARGS="$BUILD_ARGS ${{ inputs.build-args }}" @@ -114,7 +114,7 @@ runs: run: cmake ${{ steps.process_inputs.outputs.cmake_args }} - name: Build targets - if: inputs.run-build != 'false' + if: inputs.run-build != 'false' || inputs.run-test != 'false' shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }} run: cmake ${{ steps.process_inputs.outputs.cmake_build_args }}