MarkusJx / install-boost

Install boost on Github actions
MIT License
62 stars 3 forks source link

Error : Could not find boost version 1.77.0 #10

Closed gabriel654165 closed 2 years ago

gabriel654165 commented 2 years ago

Hello !

I saw in your manifest.json that the 1.77.0 boost version was avalable. I tried to use your Github action into mine with the following code :

- name: Install boost
      if: ${{ matrix.os == 'windows-latest' }}
      uses: MarkusJx/install-boost@v2.1.0
      id: install-boost
      with:
        boost_version: 1.77.0
        boost_install_dir: ${{github.workspace}}
        platform_version: 2019
        toolset: msvc

But the github agent could not find a package version of boost 1.77.0 :

Run MarkusJx/install-boost@v2.1.0
  with:
    boost_version: 1.77.0
    boost_install_dir: D:\a\zia\zia
    platform_version: 2019
    toolset: msvc
  env:
    BUILD_TYPE: Release
Starting install-boost@2.1.0
The install directory was manually changed to D:\a\zia\zia\boost
Downloading versions-manifest.json...
Parsing versions-manifest.json...
Error: Error: Could not find boost version 1.77.0

Do someone have an idea of what is going on with my code ?

Thanks a lot

MarkusJx commented 2 years ago

Hi,

when using boost version 1.77.0 or lower, you shouldn't specify platform_version, as stated in the readme:

Selecting this is only supported for boost versions 1.78.0 and higher with the new version of this action or any version with the legacy versions

gabriel654165 commented 2 years ago

Okay thanks for your response but when I tried to remove the platform_version the script gave me a warning and does not find the version anyway

Run MarkusJx/install-boost@v2.1.0
  with:
    boost_version: 1.77.0
    boost_install_dir: D:\a\zia\zia
    toolset: msvc
  env:
    BUILD_TYPE: Release
Starting install-boost@2.1.0
The install directory was manually changed to D:\a\zia\zia\boost
Warning: The 'platform_version' input is unset. This may lead to inconsistent build results.
Downloading versions-manifest.json...
Parsing versions-manifest.json...
Error: Error: Could not find boost version 1.77.0
MarkusJx commented 2 years ago

Sorry, I'm dumb, you shouldn't specify the toolset, but you should specify your platform_version. I can't even read my own docs, I'm sorry.

gabriel654165 commented 2 years ago

No it's okay no problem me too I had difficulties, thank you very much for your help @MarkusJx !