Skip to content

Commit 95d1001

Browse files
authored
Update build.yml
1 parent 20572d0 commit 95d1001

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

.github/workflows/build.yml

+19-21
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ on:
1919

2020
jobs:
2121

22-
install-dotnet:
22+
23+
build:
24+
25+
26+
strategy:
27+
matrix:
28+
configuration: [Debug]
29+
platform: [x64,x86,ARM64]
30+
2331
runs-on: windows-latest
2432
env:
2533
Solution_Name: ShadowViewer
@@ -31,37 +39,27 @@ jobs:
3139
with:
3240
submodules: recursive
3341
fetch-depth: 0
34-
42+
- uses: actions/cache@v4
43+
with:
44+
path: |
45+
~/.nuget/packages
46+
~/.dotnet
47+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
48+
restore-keys: |
49+
${{ runner.os }}-nuget-
3550
- name: Install .NET
3651
uses: actions/setup-dotnet@v1
3752
with:
3853
dotnet-version: |
3954
8.0.x
40-
55+
4156
- name: Setup MSBuild.exe
4257
uses: microsoft/setup-msbuild@v2
43-
- uses: actions/cache@v4
44-
with:
45-
path: ~/.nuget/packages
46-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
47-
restore-keys: |
48-
${{ runner.os }}-nuget-
58+
4959
- name: Restore the application
5060
run: msbuild $env:Solution_Name/$env:Solution_Name.csproj /t:Restore /p:Configuration=Debug
5161
env:
5262
Configuration: ${{ matrix.configuration }}
53-
54-
build:
55-
needs: install-dotnet
56-
strategy:
57-
matrix:
58-
configuration: [Debug]
59-
platform: [x64,x86,ARM64]
60-
61-
runs-on: windows-latest
62-
env:
63-
Solution_Name: ShadowViewer
64-
steps:
6563
- name: Decode the pfx
6664
run: |
6765
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}")

0 commit comments

Comments
 (0)