build.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: Build PCL2
  2. on:
  3. push:
  4. paths:
  5. - 'Plain Craft Launcher 2.sln'
  6. - 'Plain Craft Launcher 2/**'
  7. - '.github/workflows/**'
  8. workflow_dispatch:
  9. jobs:
  10. build:
  11. strategy:
  12. matrix:
  13. configuration: [Beta, Debug, Release, ReleaseUpdate]
  14. runs-on: windows-latest
  15. env:
  16. Solution_Name: Plain Craft Launcher 2.sln
  17. Wap_Project_Directory: Plain Craft Launcher 2
  18. Wap_Project_Path: Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj
  19. Configuration: ${{ matrix.configuration }}
  20. steps:
  21. - name: Checkout
  22. uses: actions/checkout@v4
  23. with:
  24. fetch-depth: 0
  25. # setup msbuild
  26. - name: Setup MSBuild.exe
  27. uses: microsoft/setup-msbuild@v2
  28. # Restore the application to populate the obj folder with RuntimeIdentifiers
  29. - name: Restore the application
  30. run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
  31. # Create the app package by building and packaging the Windows Application Packaging project
  32. - name: Create the app package
  33. run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration
  34. # /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle
  35. # env:
  36. # Appx_Bundle: Always
  37. # Appx_Bundle_Platforms: x86|x64|ARM|ARM64
  38. # Appx_Package_Build_Mode: StoreUpload
  39. # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
  40. - name: Upload build artifacts
  41. uses: actions/upload-artifact@v4
  42. with:
  43. name: ${{ matrix.configuration }}
  44. path: ${{ env.Wap_Project_Directory }}\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe