diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100644 index 0000000..9ff693d --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,36 @@ +name: .NET Core + +on: [push] + +jobs: + build: + strategy: + matrix: + platform: [macos-latest, windows-latest] + dotnet: [ '3.0.100', '3.1.100' ] + runs-on: ${{ matrix.platform }} + + steps: + - name: Get the sources + uses: actions/checkout@v1 + + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: ${{ matrix.dotnet }} + + - name: Restore dotnet tools + run: dotnet tool restore + + - name: Initialize build tooling + uses: cake-build/cake-action@v1 + with: + cake-bootstrap: true + + - name: Restore packages and dependencies + run: dotnet restore src/SharpInputSystem.sln + + - name: Build SharpInputSystem + uses: cake-build/cake-action@v1 + with: + target: Build diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 96d7430..52b0105 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -31,7 +31,7 @@ THE SOFTWARE. - + All diff --git a/src/global.json b/src/global.json index 9e0b625..17032b7 100644 --- a/src/global.json +++ b/src/global.json @@ -1,5 +1,5 @@ { "msbuild-sdks": { - "MSBuild.Sdk.Extras": "1.6.65" + "MSBuild.Sdk.Extras": "2.0.54" } -} \ No newline at end of file +}