You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. name: Build
  2. on:
  3. push:
  4. branches-ignore:
  5. - gh-pages
  6. pull_request:
  7. branches:
  8. - master
  9. defaults:
  10. run:
  11. shell: pwsh
  12. jobs:
  13. build:
  14. runs-on: windows-latest
  15. strategy:
  16. matrix:
  17. platform: ["x86", "x64"]
  18. env:
  19. Configuration: Release
  20. Platform: ${{ matrix.platform }}
  21. steps:
  22. - name: Checkout branch
  23. uses: actions/checkout@v2
  24. - name: Checkout submodules
  25. run: git submodule update --init --recursive
  26. - name: Locate MSBuild
  27. uses: microsoft/[email protected]
  28. - name: Restore
  29. run: msbuild -t:Restore -m
  30. - name: Build
  31. run: msbuild -t:Build -m
  32. - name: Upload net461
  33. uses: actions/upload-artifact@v2
  34. with:
  35. name: BSIPA-net461-${{ env.Platform }}
  36. path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net461/
  37. - name: Upload net35
  38. uses: actions/upload-artifact@v2
  39. with:
  40. name: BSIPA-net35-${{ env.Platform }}
  41. path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net35/