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.

52 lines
1.5 KiB

3 years ago
  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: Clear Nuget Cache
  35. run: dotnet nuget locals all --clear
  36. - name: Restore
  37. run: msbuild -t:Restore -m
  38. - name: Build
  39. run: msbuild -t:Build -m
  40. - name: Upload net461
  41. uses: actions/upload-artifact@v2
  42. with:
  43. name: BSIPA-net461-${{ env.Platform }}
  44. path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net461/
  45. - name: Upload net35
  46. uses: actions/upload-artifact@v2
  47. with:
  48. name: BSIPA-net35-${{ env.Platform }}
  49. path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net35/