debug.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: msbuild-debug
  2. on:
  3. workflow_dispatch:
  4. env:
  5. HOME: "${{github.workspace}}\\home"
  6. jobs:
  7. msbuild:
  8. # Only set the topic `has-issrc-build-env` if the secrets are available
  9. if: contains(github.event.repository.topics, 'has-issrc-build-env') && github.ref != 'refs/heads/copilot-review'
  10. runs-on: windows-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v3
  14. with:
  15. submodules: true
  16. - name: Setup MSBuild
  17. uses: microsoft/setup-msbuild@v2
  18. - name: Initialize build environment
  19. env:
  20. ISSRC_BUILD_ENV_ZIP_PASSWORD: ${{ secrets.ISSRC_BUILD_ENV_ZIP_PASSWORD }}
  21. ISSRC_BUILD_ENV_ZIP_URL: ${{ secrets.ISSRC_BUILD_ENV_ZIP_URL }}
  22. run: |
  23. (New-Object Net.WebClient).DownloadFile($env:ISSRC_BUILD_ENV_ZIP_URL, "issrc-build-env.zip")
  24. & "C:\\Program Files\\7-Zip\\7z.exe" x -oissrc-build-env -p"$env:ISSRC_BUILD_ENV_ZIP_PASSWORD" issrc-build-env.zip
  25. if (!(Test-Path issrc-build-env\bin\dcc32.exe)) {
  26. Write-Host "Failed to extract dcc32.exe"
  27. Exit 1
  28. }
  29. Remove-Item issrc-build-env.zip
  30. $DELPHIXEROOT = (Get-Item .\issrc-build-env).FullName
  31. "DELPHIXEROOT=$DELPHIXEROOT" | Out-File -NoNewline -Encoding ascii -Append "$env:GITHUB_ENV"
  32. "set BDS=$DELPHIXEROOT" | Out-File -Encoding ascii issrc-build-env\bin\rsvars.bat
  33. "set BDSCOMMONDIR=$DELPHIXEROOT" | Out-File -NoNewline -Encoding ascii -Append issrc-build-env\bin\rsvars.bat
  34. - name: Configure build
  35. run: |
  36. "set DELPHIXEROOT=$env:DELPHIXEROOT" | Out-File -Encoding ascii compilesettings.bat
  37. "set ISSIGTOOL_KEY_FILE=${{github.workspace}}\mykey.isprivatekey" | Out-File -NoNewline -Encoding ascii -Append compilesettings.bat
  38. # See https://github.com/fawazahmed0/action-debug-vscode
  39. - name: Pause (click link to open VSCode, create file named "continue" to continue)
  40. uses: fawazahmed0/action-debug-vscode@main
  41. - name: Clean up temporary files
  42. if: always()
  43. shell: bash
  44. run: |
  45. rm -rf mykey.isprivatekey