From a3fc664bb60f8802d05e006f222dac9c5a4a5b23 Mon Sep 17 00:00:00 2001 From: Hai Eng Date: Fri, 26 Nov 2021 23:08:23 +0800 Subject: [PATCH] Create build.yml --- build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 build.yml diff --git a/build.yml b/build.yml new file mode 100644 index 00000000..03036f8f --- /dev/null +++ b/build.yml @@ -0,0 +1,33 @@ +name: build + +on: + push: + pull_request: + branches: [ v0.7.0 ] + +env: + DOTNET_VERSION: '5.0.x' # The .NET SDK version to use + +jobs: + build: + + name: build-${{matrix.os}} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest] + dotnet-version: [env.DOTNET_VERSION] + steps: + - uses: actions/checkout@v2 + + - name: setup-msbuild + uses: microsoft/setup-msbuild@v1.1 + + - name: Setup NuGet.exe for use with actions + uses: NuGet/setup-nuget@v1.0.5 + + - name: Restore Nuget + run: nuget restore ProximaX.Sirius.Chain.Sdk.sln + + - name: Build + run: msbuild ProximaX.Sirius.Chain.Sdk.sln