From cf5fa57bfe386e06415509116667394ba270686d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 13 Feb 2021 19:53:24 +0100 Subject: [PATCH] Added dotnet.yml file to enable GitHub Actions --- .github/workflows/dotnet.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 00000000..e5b91118 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,25 @@ +name: .NET + +on: [push, pull_request] + +jobs: + build-package: + runs-on: windows-latest + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Create local NuGet feed + run: mkdir src\ComputeSharp.Package\bin\Release + shell: cmd + - name: Build + run: dotnet build src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj -c Release + shell: cmd + - name: Upload package artifact + uses: actions/upload-artifact@v2 + with: + name: ComputeSharp.nupkg + path: src\ComputeSharp.Package\bin\Release\*.nupkg \ No newline at end of file