Skip to content

Commit

Permalink
ci: adjust workflows for new wpf project
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Kops committed May 28, 2024
1 parent b75083c commit d16de2f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/post-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/pre-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d16de2f

Please sign in to comment.