build.yml 1.2 KB

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