Skip to content

Commit 16dc739

Browse files
committed
(build) Make workflow similar to Cake.Discord
There are still some build errors, so moving the workflow to be similar to what is in Cake.Discord, since this was updated recently by Nils, and is known to be working.
1 parent ef99cdb commit 16dc739

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [windows-latest, ubuntu-18.04, macos-13]
22+
os: [windows-2022, ubuntu-22.04, macos-12]
2323

2424
env:
2525
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
@@ -51,7 +51,18 @@ jobs:
5151
uses: actions/cache@v3
5252
with:
5353
path: tools
54-
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
54+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake', '.config/dotnet-tools.json') }}
55+
56+
- name: Setup required dotnet versions
57+
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
58+
with:
59+
dotnet-version: |
60+
2.1.818
61+
3.1.x
62+
5.0.x
63+
6.0.x
64+
7.0.x
65+
8.0.x
5566
5667
- name: Build project
5768
uses: cake-build/cake-action@v1

0 commit comments

Comments
 (0)