Skip to content

Commit 534dd53

Browse files
davidmhewittbilelmoussaoui
authored andcommitted
Fix cache restoration after new arch option
1 parent 69e09d1 commit 534dd53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
| `run-tests` | Enable/Disable running tests | Optional | `false` |
4848
| `branch` | The default flatpak branch | Optional | `master` |
4949
| `cache` | Enable/Disable caching `.flatpak-builder` directory | Optional | `true` |
50-
| `cache-key` | Specifies the cache key | Optional | `flatpak-builder-${sha256(manifestPath)}` |
50+
| `cache-key` | Specifies the cache key. CPU arch is automatically added, so there is no need to add it to the cache key. | Optional | `flatpak-builder-${sha256(manifestPath)}` |
5151
| `arch` | Specifies the CPU architecture to build for | Optional | `x86_64` |
5252

5353
#### Building for multiple CPU architectures

flatpak-builder/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const prepareBuild = async (repositoryName, repositoryUrl, manifestPath, cacheBu
218218

219219
const cacheHitKey = await cache.restoreCache(
220220
CACHE_PATH,
221-
cacheKey,
221+
`${cacheKey}-${arch}`,
222222
[
223223
'flatpak-builder-',
224224
'flatpak-'

flatpak-builder/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const prepareBuild = async (repositoryName, repositoryUrl, manifestPath, cacheBu
196196

197197
const cacheHitKey = await cache.restoreCache(
198198
CACHE_PATH,
199-
cacheKey,
199+
`${cacheKey}-${arch}`,
200200
[
201201
'flatpak-builder-',
202202
'flatpak-'

0 commit comments

Comments
 (0)