Skip to content

Commit

Permalink
ci: adjust github workflow actions to build with and without wpf solu…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
Per Kops committed May 28, 2024
1 parent d7dd619 commit b75083c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/post-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
merge-to-stable:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
run: dotnet restore

- name: 🛠️ Build
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true

- name: 🧪 Run unit tests
run: dotnet test -c Release --no-build --filter "Category!=Integration"
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/pre-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ jobs:
- name: 🔁 Restore packages
run: dotnet restore

- name: 🛠️ Building library in release mode
run: dotnet build -c Release --no-restore
- name: 🛠️ Build non-wpf solution
run: dotnet build Atc.Azure.IoT-WithoutWpf.sln -c Release --no-restore
if: runner.os != 'Windows'

- name: 🛠️ Build all
run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore
if: runner.os == 'Windows'

dotnet-test:
runs-on: ubuntu-latest
Expand All @@ -51,8 +56,13 @@ jobs:
- name: 🔁 Restore packages
run: dotnet restore

- name: 🛠️ Build
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
- name: 🛠️ Build non-wpf solution
run: dotnet build Atc.Azure.IoT-WithoutWpf.sln -c Release --no-restore /p:UseSourceLink=true
if: runner.os != 'Windows'

- 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 @@ -11,7 +11,7 @@ env:
jobs:
release:
if: github.ref == 'refs/heads/stable'
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
run: dotnet restore

- name: 🛠️ Building library in release mode
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true

- name: ⏩ Merge to release-branch
run: |
Expand Down

0 comments on commit b75083c

Please sign in to comment.