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.

46 lines
1.2 KiB

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