mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
Improve cache busting to consider the build scripts themselves (#633)
This commit is contained in:
parent
5f5d8f08d0
commit
7b0040063b
2
.github/workflows/build_linux.yaml
vendored
2
.github/workflows/build_linux.yaml
vendored
@ -65,7 +65,7 @@ jobs:
|
|||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-${{ inputs.docker-image || github.ref_name }}-${{ inputs.sqlcipher }}-${{ inputs.arch }}-${{ hashFiles('hakDependencies.json', 'electronVersion') }}
|
key: ${{ runner.os }}-${{ inputs.docker-image || github.ref_name }}-${{ inputs.sqlcipher }}-${{ inputs.arch }}-${{ hashFiles('hakHash', 'electronVersion') }}
|
||||||
path: |
|
path: |
|
||||||
./.hak
|
./.hak
|
||||||
|
|
||||||
|
2
.github/workflows/build_macos.yaml
vendored
2
.github/workflows/build_macos.yaml
vendored
@ -46,7 +46,7 @@ jobs:
|
|||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-${{ hashFiles('hakDependencies.json', 'electronVersion') }}
|
key: ${{ runner.os }}-${{ hashFiles('hakHash', 'electronVersion') }}
|
||||||
path: |
|
path: |
|
||||||
./.hak
|
./.hak
|
||||||
|
|
||||||
|
6
.github/workflows/build_prepare.yaml
vendored
6
.github/workflows/build_prepare.yaml
vendored
@ -62,7 +62,9 @@ jobs:
|
|||||||
- name: Generate cache hash files
|
- name: Generate cache hash files
|
||||||
run: |
|
run: |
|
||||||
yarn run --silent electron --version > electronVersion
|
yarn run --silent electron --version > electronVersion
|
||||||
cat package.json | jq -c .hakDependencies > hakDependencies.json
|
cat package.json | jq -c .hakDependencies | sha1sum > hakHash
|
||||||
|
find hak -type f -print0 | xargs -0 sha1sum >> hakHash
|
||||||
|
find scripts/hak -type f -print0 | xargs -0 sha1sum >> hakHash
|
||||||
|
|
||||||
- name: "[Nightly] Calculate versions"
|
- name: "[Nightly] Calculate versions"
|
||||||
id: versions
|
id: versions
|
||||||
@ -120,5 +122,5 @@ jobs:
|
|||||||
webapp.asar
|
webapp.asar
|
||||||
package.json
|
package.json
|
||||||
electronVersion
|
electronVersion
|
||||||
hakDependencies.json
|
hakHash
|
||||||
changelog.Debian
|
changelog.Debian
|
||||||
|
2
.github/workflows/build_windows.yaml
vendored
2
.github/workflows/build_windows.yaml
vendored
@ -68,7 +68,7 @@ jobs:
|
|||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-${{ inputs.arch }}-${{ hashFiles('hakDependencies.json', 'electronVersion') }}
|
key: ${{ runner.os }}-${{ inputs.arch }}-${{ hashFiles('hakHash', 'electronVersion') }}
|
||||||
path: |
|
path: |
|
||||||
./.hak
|
./.hak
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user