lukka / run-cmake

GitHub Action to build C++ applications with CMake (CMakePresets.json), Ninja and vcpkg on GitHub.
MIT License
171 stars 19 forks source link

Error after compilation on windows #127

Closed DavidAce closed 8 months ago

DavidAce commented 8 months ago

I got the error below on my Windows CI, after the build step. Re-running the job did not help.

::remove-matcher owner=D%3A\a\_actions\lukka\run-cmake\v10\dist\all.json::
Error: "'D:\a\_temp\507572093\cmake-3.27.7-windows-x86_64\bin\cmake.exe' failed with error code: '1'.
    at CMakeRunner.<anonymous> (D:\a\_actions\lukka\run-cmake\v10\dist\index.js:6885:23)
    at Generator.next (<anonymous>)
    at fulfilled (D:\a\_actions\lukka\run-cmake\v10\dist\index.js:6700:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: run-cmake action execution failed: 'Error: "'D:\a\_temp\507572093\cmake-3.27.7-windows-x86_64\bin\cmake.exe' failed with error code: '1'.'

Is there anything I can do? My workflow is here, the relevant part is:

- uses: lukka/get-cmake@latest
      [...]
      - name: Run CMakePreset
        uses: lukka/run-cmake@v10
        with:
          configurePreset: 'github-actions-${{ matrix.manager }}'
          configurePresetAdditionalArgs: "['-DH5PP_ENABLE_ASAN=FALSE']"
          buildPreset: 'github-actions-${{ matrix.manager }}'
          buildPresetAdditionalArgs: "['--config Debug']"
          testPreset: 'github-actions-${{ matrix.manager }}'
          testPresetAdditionalArgs: "['--build-config Debug']"
lukka commented 8 months ago

@DavidAce the reason of the failure of the workflow is the exit code of CMake, which is 1, which indicates a failure.

Please check the log of the build and see what the root cause is. I took a look, and it is about fmt usage:

Error: /Users/runner/work/h5pp/h5pp/include/h5pp/details/h5ppFormatComplex.h:17:70: error: no template named 'dynamic_specs_handler' in namespace 'fmt::detail'; did you mean 'dynamic_spec_id_handler'?
          using handler_type                            = fmt::detail::dynamic_specs_handler<format_parse_context>;
                                                          ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
                                                                       dynamic_spec_id_handler
DavidAce commented 8 months ago

Thanks for pointing me in the right direction!