From d0dfcc1e5784c864e3a141c3f8d4569377c44626 Mon Sep 17 00:00:00 2001 From: Grebtsew Date: Sun, 6 Aug 2023 16:14:19 +0200 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 198667c..068527b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,4 +1,4 @@ -name: CI +name: Build Action on: workflow_dispatch: @@ -9,19 +9,14 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: 4.7.2 + cache: true + - name: Dependencies + run: dotnet restore --locked-mode ./PatternsMaker/PatternsMaker.sln - steps: - - uses: actions/checkout@v2 - - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1 - - - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.5 - - - name: Restore Packages - run: nuget restore ./PatternsMaker/PatternsMaker.sln - - - name: Build solution - run: msbuild ./PatternsMaker/PatternsMaker.sln -t:rebuild -property:Configuration=Release + - name: Execute dotnet + run: dotnet build ./PatternsMaker/PatternsMaker.sln \ No newline at end of file