build.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: Build
  2. on:
  3. push:
  4. paths:
  5. - 'Plain Craft Launcher 2/**'
  6. - '.github/workflows/**'
  7. pull_request:
  8. paths:
  9. - 'Plain Craft Launcher 2/**'
  10. - '.github/workflows/**'
  11. workflow_dispatch:
  12. jobs:
  13. build:
  14. strategy:
  15. matrix:
  16. configuration: [Debug, Release, Snapshot, BETA, ReleaseUpdate]
  17. runs-on: windows-latest
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v4
  21. with:
  22. fetch-depth: 0
  23. - name: Set Describe
  24. shell: bash
  25. run: |
  26. Describe=`git describe --tags --always`
  27. echo "Describe=$Describe" >> $GITHUB_ENV
  28. - name: Setup MSBuild.exe
  29. uses: microsoft/setup-msbuild@v2
  30. with:
  31. msbuild-architecture: x64
  32. - name: Build
  33. run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ matrix.configuration }}
  34. - name: Upload a Build Artifact
  35. uses: actions/upload-artifact@v4
  36. with:
  37. name: ${{ matrix.configuration }} ${{ env.Describe }}
  38. path: Plain Craft Launcher 2\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe