@@ -17,7 +17,7 @@ concurrency:
1717 cancel-in-progress : true
1818
1919jobs :
20- generate-matrix :
20+ generate-matrix : # find all of the web app project folders
2121 runs-on : ubuntu-latest
2222 outputs :
2323 matrix : ${{ steps.set-matrix.outputs.matrix }}
4747 JSON_MATRIX=$(printf '%s\n' "${APPS[@]}" | jq -R . | jq -cs .)
4848
4949 echo "matrix=$JSON_MATRIX" >> "$GITHUB_OUTPUT"
50- cache-runtimes :
50+
51+ cache-package-managers : # setup package managers and cache ahead of matrix of builds (each build will have shorter setup time)
5152 runs-on : ubuntu-latest
5253 env :
5354 NODE_VERSION : " 24.x"
7980 uses : actions/setup-dotnet@v3
8081 with :
8182 dotnet-version : ${{ env.DOTNET_VERSION }}
83+
8284 build :
83- needs : [generate-matrix, cache-runtimes ]
85+ needs : [generate-matrix, cache-package-managers ]
8486 runs-on : ubuntu-latest
8587 strategy :
8688 fail-fast : true
@@ -106,14 +108,14 @@ jobs:
106108 - name : Checkout repository
107109 uses : actions/checkout@v6
108110
109- - name : Restore npm
111+ - name : Restore npm from cache
110112 if : env.FRAMEWORK != 'Blazor'
111113 uses : actions/cache@v3
112114 with :
113115 path : ~/.npm
114116 key : npm-cache-${{ env.NODE_VERSION }}-${{ runner.os }}
115117
116- - name : Restore .NET SDK
118+ - name : Restore .NET SDK from cache
117119 if : env.FRAMEWORK == 'Blazor'
118120 uses : actions/cache@v3
119121 with :
@@ -165,7 +167,7 @@ jobs:
165167 name : ${{ env.APP_NAME }}-build
166168 path : ${{ env.APP_DIR }}/build
167169
168- cache-slcli :
170+ cache-slcli : # cache slcli so deploy runners run faster
169171 if :
170172 github.repository_owner == 'ni' && startsWith(github.ref,
171173 ' refs/heads/main' )
@@ -221,7 +223,7 @@ jobs:
221223 name : ${{ env.APP_NAME }}-build
222224 path : ${{ env.APP_DIR }}/build
223225
224- - name : Restore same Homebrew-slcli cache
226+ - name : Restore Homebrew-slcli from cache
225227 uses : actions/cache@v3
226228 with :
227229 path : /home/linuxbrew/.linuxbrew
0 commit comments