6969 path : |
7070 /var/cache/apt/archives
7171 /var/lib/snapd/cache
72- key : ${{ runner.os }}-linux-deps-${{ hashFiles('**/package.json', '**/electron-builder.json5') }}
72+ key : " ${{ matrix.os }}-deps-${{ hashFiles('**/package.json', '**/electron-builder.json5') }}"
73+ restore-keys : ${{ matrix.os }}-deps-
7374
7475 - name : Set up Linux dependencies
7576 if : ${{ runner.os == 'Linux' }}
99100 uses : actions/cache@v4
100101 with :
101102 path : ${{ env.STORE_PATH }}
102- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} # cache the pnpm store as long as the lockfile isn't changed
103- restore-keys : |
104- ${{ runner.os }}-pnpm-store-
103+ key : " ${{ matrix.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}" # cache the pnpm store as long as the lockfile isn't changed
104+ restore-keys : ${{ matrix.os }}-pnpm-store-
105105
106106 - name : Install dependencies
107107 run : pnpm i
@@ -110,16 +110,15 @@ jobs:
110110 uses : actions/cache@v4
111111 with :
112112 path : ${{ env.ELECTRON_BUILDER_CACHE }}
113- key : ${{ runner.os }}-electron-builder-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/electron-builder.json5') }}
114- restore-keys : |
115- ${{ runner.os }}-electron-builder-
113+ key : ${{ matrix.os }}-electron-builder-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/electron-builder.json5') }}
114+ restore-keys : ${{ matrix.os }}-electron-builder-
116115
117- - name : Build on ${{ runner .os }}
116+ - name : Build for ${{ matrix .os }}
118117 run : pnpm build
119118
120119 - name : Upload artifacts
121120 uses : actions/upload-artifact@v4
122121 with :
123- name : " ${{ runner .os }}-${{ github.ref_name }}-${{ github.sha }}"
122+ name : " ${{ matrix .os }}-${{ github.ref_name }}-${{ github.sha }}"
124123 path : release
125124 retention-days : ${{ env.ARTIFACT_RETENTION_DAYS }}
0 commit comments