From d16de2f9269ababb54ff006f562108de7aa08e96 Mon Sep 17 00:00:00 2001 From: Per Kops Date: Tue, 28 May 2024 12:00:44 +0200 Subject: [PATCH] ci: adjust workflows for new wpf project --- .github/workflows/post-integration.yml | 4 ++-- .github/workflows/pre-integration.yml | 25 +++++++++++++++---------- .github/workflows/release.yml | 4 ++-- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/post-integration.yml b/.github/workflows/post-integration.yml index 8ce0eb0..5d55796 100644 --- a/.github/workflows/post-integration.yml +++ b/.github/workflows/post-integration.yml @@ -42,10 +42,10 @@ jobs: distribution: 'zulu' - name: ๐Ÿงน Clean - run: dotnet clean -c Release && dotnet nuget locals all --clear + run: dotnet clean Atc.Azure.IoT.sln -c Release && dotnet nuget locals all --clear - name: ๐Ÿ” Restore packages - run: dotnet restore + run: dotnet restore Atc.Azure.IoT.sln - name: ๐Ÿ› ๏ธ Build run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true diff --git a/.github/workflows/pre-integration.yml b/.github/workflows/pre-integration.yml index d48fd54..b178c1f 100644 --- a/.github/workflows/pre-integration.yml +++ b/.github/workflows/pre-integration.yml @@ -24,11 +24,21 @@ jobs: with: dotnet-version: '8.0.x' - - name: ๐Ÿงน Clean - run: dotnet clean -c Release && dotnet nuget locals all --clear + - name: ๐Ÿงน Clean non-wpf solution + run: dotnet clean Atc.Azure.IoT-WithoutWpf.sln -c Release && dotnet nuget locals all --clear + if: runner.os != 'Windows' - - name: ๐Ÿ” Restore packages - run: dotnet restore + - name: ๐Ÿงน Clean all + run: dotnet clean Atc.Azure.IoT.sln -c Release && dotnet nuget locals all --clear + if: runner.os == 'Windows' + + - name: ๐Ÿ” Restore packages non-wpf solution + run: dotnet restore Atc.Azure.IoT-WithoutWpf.sln + if: runner.os != 'Windows' + + - name: ๐Ÿ” Restore packages all + run: dotnet restore Atc.Azure.IoT.sln + if: runner.os == 'Windows' - name: ๐Ÿ› ๏ธ Build non-wpf solution run: dotnet build Atc.Azure.IoT-WithoutWpf.sln -c Release --no-restore @@ -54,15 +64,10 @@ jobs: dotnet-version: '8.0.x' - name: ๐Ÿ” Restore packages - run: dotnet restore - - - name: ๐Ÿ› ๏ธ Build non-wpf solution - run: dotnet build Atc.Azure.IoT-WithoutWpf.sln -c Release --no-restore /p:UseSourceLink=true - if: runner.os != 'Windows' + run: dotnet restore Atc.Azure.IoT.sln - name: ๐Ÿ› ๏ธ Build all run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true - if: runner.os == 'Windows' - name: ๐Ÿงช Run unit tests run: dotnet test -c Release --no-build --filter "Category!=Integration" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9199311..5238c17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,10 @@ jobs: dotnet-version: '8.0.x' - name: ๐Ÿงน Clean - run: dotnet clean -c Release && dotnet nuget locals all --clear + run: dotnet clean Atc.Azure.IoT.sln -c Release && dotnet nuget locals all --clear - name: ๐Ÿ” Restore packages - run: dotnet restore + run: dotnet restore Atc.Azure.IoT.sln - name: ๐Ÿ› ๏ธ Building library in release mode run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true