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.

49 lines
1.4 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. fail-fast: false
  17. matrix:
  18. platform: ["x86", "x64"]
  19. env:
  20. Configuration: Release
  21. Platform: ${{ matrix.platform }}
  22. steps:
  23. - name: Checkout branch
  24. uses: actions/checkout@v2
  25. - name: Checkout submodules
  26. run: git submodule update --init --recursive
  27. - name: Locate MSBuild
  28. uses: microsoft/[email protected]
  29. - name: Setup .NET Core
  30. uses: actions/setup-dotnet@v1
  31. with:
  32. # As usual, obtained from: https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/5.0/releases.json
  33. dotnet-version: "3.1.404" # since we now use this
  34. - name: Restore
  35. run: msbuild -t:Restore -m
  36. - name: Build
  37. run: msbuild -t:Build -m
  38. - name: Upload net461
  39. uses: actions/upload-artifact@v2
  40. with:
  41. name: BSIPA-net461-${{ env.Platform }}
  42. path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net461/
  43. - name: Upload net35
  44. uses: actions/upload-artifact@v2
  45. with:
  46. name: BSIPA-net35-${{ env.Platform }}
  47. path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net35/