Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I set QtMsBuild macro in GitHub workflow?

How can I set QtMsBuild macro in GitHub workflow?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtmsvc2019visualstudioqt 5.14.0githubdeploymet
1 Posts 1 Posters 520 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yash001
    wrote on 19 Jan 2021, 19:18 last edited by Yash001
    #1
        # Steps represent a sequence of tasks that will be executed as part of the job
        steps:
    
        # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
        - name: Checkout
          uses: actions/checkout@v2
    
        - name: Create QtCache
          id: cache-qt
          uses: actions/cache@v1
          with:
            path: ../Qt
            key: ${{ runner.os }}-QtCache
    
        - name: Install Qt
          uses: jurplel/install-qt-action@v2
          with:
            version: '5.14.0'
            #cached: ${{ steps.cache-qt.outputs.cache-hit }}
    
        - name: Add MSBuild to PATH
          uses: microsoft/setup-msbuild@v1
    
    
        - name: Restore NuGet packages
          working-directory: ${{env.GITHUB_WORKSPACE}}
          run: nuget restore ${{env.SOLUTION_FILE_PATH}}
    
        - name: Build
          working-directory: ${{env.GITHUB_WORKSPACE}}
          # Add additional options to the MSBuild command line here (like platform or verbosity level).
          # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
          run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
    

    While build process I am getting this error.
    Is there any way to solve this error using msbuild.exe? (I am getting this issue in GitVirtual environment not in local system.)
    project is work fine in my local system.

    QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly.

    1 Reply Last reply
    0

    1/1

    19 Jan 2021, 19:18

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved