Skip to content

Commit 15682a8

Browse files
committed
Fix CI
Add archetucture info to build cache key Signed-off-by: Maxime Gervais <gervais.maxime@gmail.com>
1 parent 0007600 commit 15682a8

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎.github/workflows/MediaConch_Build_Lib.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
uses: actions/cache@v4
3333
with:
3434
path: "${{matrix.conan_home}}"
35-
key: ${{ runner.os }}-conan-${{ hashFiles('.github/workflows/conanfile.txt') }}
35+
key: ${{ runner.os }}-${{ runner.arch }}-conan-${{ hashFiles('.github/workflows/conanfile.txt') }}
3636
restore-keys: |
37-
${{ runner.os }}-conan-
37+
${{ runner.os }}-${{ runner.arch }}-conan-
3838
- name: "install dependencies" # use conan package manager to install c and c++ dependencies
3939
# conanfile.txt is copied to the root because for some reason, conan doesn't seem to create the top
4040
# CMakeUserPresets.json if you have the conanfile.txt in another directory than the path you call conan from.

‎.github/workflows/MediaConch_Checks.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/cache@v4
4040
with:
4141
path: ${{ steps.zenlib-info.outputs.path }}
42-
key: ${{ runner.os }}-ZenLib-${{ steps.zenlib-info.outputs.hash }}
42+
key: ${{ runner.os }}-${{ runner.arch }}-ZenLib-${{ steps.zenlib-info.outputs.hash }}
4343
- name: ZenLib
4444
if: steps.zenlib-cache.outputs.cache-hit != 'true'
4545
run: |
@@ -59,7 +59,7 @@ jobs:
5959
uses: actions/cache@v4
6060
with:
6161
path: ${{ steps.mediainfolib-info.outputs.path }}
62-
key: ${{ runner.os }}-MediaInfoLib-${{ steps.mediainfolib-info.outputs.hash }}
62+
key: ${{ runner.os }}-${{ runner.arch }}-MediaInfoLib-${{ steps.mediainfolib-info.outputs.hash }}
6363
- name: MediaInfoLib
6464
if: steps.mediainfolib-cache.outputs.cache-hit != 'true'
6565
run: |
@@ -126,7 +126,7 @@ jobs:
126126
uses: actions/cache@v4
127127
with:
128128
path: ${{ steps.zlib-info.outputs.path }}
129-
key: windows-${{ matrix.arch }}-zlib-${{ steps.zlib-info.outputs.hash }}
129+
key: ${{ runner.os }}-${{ matrix.arch }}-zlib-${{ steps.zlib-info.outputs.hash }}
130130
- name: Checkout zlib
131131
if: steps.zlib-cache.outputs.cache-hit != 'true'
132132
uses: actions/checkout@v4
@@ -143,7 +143,7 @@ jobs:
143143
uses: actions/cache@v4
144144
with:
145145
path: ${{ steps.libxml2-info.outputs.path }}
146-
key: windows-${{ matrix.arch }}-libxml2-${{ steps.libxml2-info.outputs.hash }}
146+
key: ${{ runner.os }}-${{ matrix.arch }}-libxml2-${{ steps.libxml2-info.outputs.hash }}
147147
- name: Checkout libxml2
148148
if: steps.libxml2-cache.outputs.cache-hit != 'true'
149149
uses: actions/checkout@v4
@@ -160,7 +160,7 @@ jobs:
160160
uses: actions/cache@v4
161161
with:
162162
path: ${{ steps.libxslt-info.outputs.path }}
163-
key: windows-${{ matrix.arch }}-libxslt-${{ steps.libxslt-info.outputs.hash }}
163+
key: ${{ runner.os }}-${{ matrix.arch }}-libxslt-${{ steps.libxslt-info.outputs.hash }}
164164
- name: Checkout libxslt
165165
if: steps.libxslt-cache.outputs.cache-hit != 'true'
166166
uses: actions/checkout@v4
@@ -177,7 +177,7 @@ jobs:
177177
uses: actions/cache@v4
178178
with:
179179
path: ${{ steps.libevent-info.outputs.path }}
180-
key: windows-${{ matrix.arch }}-libevent-${{ steps.libevent-info.outputs.hash }}
180+
key: ${{ runner.os }}-${{ matrix.arch }}-libevent-${{ steps.libevent-info.outputs.hash }}
181181
- name: Checkout libevent
182182
if: steps.libevent-cache.outputs.cache-hit != 'true'
183183
uses: actions/checkout@v4
@@ -194,7 +194,7 @@ jobs:
194194
uses: actions/cache@v4
195195
with:
196196
path: ${{ steps.jansson-info.outputs.path }}
197-
key: windows-${{ matrix.arch }}-jansson-${{ steps.jansson-info.outputs.hash }}
197+
key: ${{ runner.os }}-${{ matrix.arch }}-jansson-${{ steps.jansson-info.outputs.hash }}
198198
- name: Checkout jansson
199199
if: steps.jansson-cache.outputs.cache-hit != 'true'
200200
uses: actions/checkout@v4
@@ -211,7 +211,7 @@ jobs:
211211
uses: actions/cache@v4
212212
with:
213213
path: ${{ steps.zenlib-info.outputs.path }}
214-
key: windows-${{ matrix.arch }}-zenlib-${{ steps.zenlib-info.outputs.hash }}
214+
key: ${{ runner.os }}-${{ matrix.arch }}-zenlib-${{ steps.zenlib-info.outputs.hash }}
215215
- name: Checkout ZenLib
216216
if: steps.zenlib-cache.outputs.cache-hit != 'true'
217217
uses: actions/checkout@v4
@@ -228,7 +228,7 @@ jobs:
228228
uses: actions/cache@v4
229229
with:
230230
path: ${{ steps.mediainfolib-info.outputs.path }}
231-
key: windows-${{ matrix.arch }}-mediainfolib-${{ steps.mediainfolib-info.outputs.hash }}
231+
key: ${{ runner.os }}-${{ matrix.arch }}-mediainfolib-${{ steps.mediainfolib-info.outputs.hash }}
232232
- name: Checkout MediaInfoLib
233233
if: steps.mediainfolib-cache.outputs.cache-hit != 'true'
234234
uses: actions/checkout@v4

0 commit comments

Comments
 (0)