build.yml 1.1 KB

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