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.

54 lines
1.6 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. permissions: read-all
  13. jobs:
  14. build:
  15. runs-on: windows-latest
  16. strategy:
  17. fail-fast: false
  18. matrix:
  19. platform: ["x86", "x64"]
  20. env:
  21. Configuration: Release
  22. Platform: ${{ matrix.platform }}
  23. steps:
  24. - name: Checkout branch
  25. uses: actions/checkout@v2
  26. - name: Checkout submodules
  27. run: git submodule update --init --recursive
  28. - name: Locate MSBuild
  29. uses: microsoft/[email protected]
  30. - name: Setup .NET Core
  31. uses: actions/setup-dotnet@v1
  32. with:
  33. # As usual, obtained from: https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/5.0/releases.json
  34. dotnet-version: "6.0.100" # since we now use this
  35. - name: Log in to package source
  36. shell: pwsh
  37. run: |
  38. dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} `
  39. --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Atlas-Rhythm/index.json"
  40. - name: Clear Nuget Cache
  41. run: dotnet nuget locals all --clear
  42. - name: Restore
  43. run: msbuild -t:Restore -m
  44. - name: Build
  45. run: msbuild -t:Build -m
  46. - name: Upload net472
  47. uses: actions/upload-artifact@v2
  48. with:
  49. name: BSIPA-net472-${{ env.Platform }}
  50. path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net472/