build.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 Hash
  24. shell: bash
  25. run: |
  26. Hash=`git rev-parse --short HEAD`
  27. echo "Describe=$Describe" >> $GITHUB_ENV
  28. - name: Set Describe
  29. shell: bash
  30. run: |
  31. Describe=`git describe --tags`
  32. echo "Describe=$Describe" >> $GITHUB_ENV
  33. - name: Setup MSBuild.exe
  34. uses: microsoft/setup-msbuild@v2
  35. with:
  36. msbuild-architecture: x64
  37. - name: Build
  38. run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ matrix.configuration }}
  39. - name: Upload a Build Artifact
  40. uses: actions/upload-artifact@v4
  41. with:
  42. name: ${{ matrix.configuration }} ${{ env.Describe }}
  43. path: Plain Craft Launcher 2\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe