build.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. jobs:
  12. build:
  13. strategy:
  14. matrix:
  15. configuration: [Debug, Release, Snapshot, BETA, ReleaseUpdate]
  16. runs-on: windows-latest
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v4
  20. with:
  21. fetch-depth: 0
  22. - name: Set Hash
  23. shell: bash
  24. run: |
  25. Hash=`git rev-parse --short HEAD`
  26. echo "Describe=$Describe" >> $GITHUB_ENV
  27. - name: Set Describe
  28. shell: bash
  29. run: |
  30. Describe=`git describe --tags`
  31. echo "Describe=$Describe" >> $GITHUB_ENV
  32. - name: Setup MSBuild.exe
  33. uses: microsoft/setup-msbuild@v2
  34. with:
  35. msbuild-architecture: x64
  36. - name: Build
  37. run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ matrix.configuration }}
  38. - name: Upload a Build Artifact
  39. uses: actions/upload-artifact@v4
  40. with:
  41. name: ${{ matrix.configuration }} ${{ env.Describe }}
  42. path: Plain Craft Launcher 2\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe