Skip to content

GitHub Actions Build #1373

Closed Answered by callumeveratt
callumeveratt asked this question in Q&A
Discussion options

You must be logged in to vote

Self solved. After reading through some threads back to 2022 in the Discord I managed to get it working:

  build:
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v3
    
    - uses: nanoframework/nanobuild@v1

    - name: Add MSBuild to PATH
      uses: microsoft/[email protected]
      with:
        msbuild-architecture: x64
    
    - name: Install NuGet
      uses: nuget/setup-nuget@v1

    - name: Restore NuGet packages
      working-directory: ${{env.GITHUB_WORKSPACE}}
      run: nuget restore ${{env.SOLUTION_FILE_PATH}}

    - name: Build
      working-directory: ${{env.GITHUB_WORKSPACE}}
      run: msbuild ${{env.SOLUTION_FILE_PATH}} /verbosity:normal /p:Confi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by callumeveratt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant