mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
ci: use actions/cache
to manage depends cache
Co-authored-by: pasta <pasta@dashboost.org>
This commit is contained in:
parent
018d80a896
commit
9cc29a832e
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -86,25 +86,20 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
depends-sources-
|
depends-sources-
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache depends
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
depends/built
|
depends/built
|
||||||
|
depends/${{ matrix.host }}
|
||||||
key: ${{ runner.os }}-depends-${{ matrix.build_target }}-${{ hashFiles('depends/packages/*') }}
|
key: ${{ runner.os }}-depends-${{ matrix.build_target }}-${{ hashFiles('depends/packages/*') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-depends-${{ matrix.build_target }}-${{ hashFiles('depends/packages/*') }}
|
${{ runner.os }}-depends-${{ matrix.build_target }}-${{ hashFiles('depends/packages/*') }}
|
||||||
${{ runner.os }}-depends-${{ matrix.build_target }}
|
${{ runner.os }}-depends-${{ matrix.build_target }}
|
||||||
|
|
||||||
- name: Build dependencies
|
- name: Build depends
|
||||||
run: make -j$(nproc) -C depends HOST=${{ matrix.host }}
|
run: make -j$(nproc) -C depends HOST=${{ matrix.host }}
|
||||||
|
|
||||||
- name: Upload built depends
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: depends-${{ matrix.build_target }}
|
|
||||||
path: depends/${{ matrix.host }}
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
needs: [build-image, build-depends]
|
needs: [build-image, build-depends]
|
||||||
@ -146,11 +141,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Download built depends
|
- name: Restore depends cache
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
name: depends-${{ matrix.depends_on }}
|
path: |
|
||||||
path: depends/${{ matrix.host }}
|
depends/built
|
||||||
|
depends/${{ matrix.host }}
|
||||||
|
key: ${{ runner.os }}-depends-${{ matrix.depends_on }}-${{ hashFiles('depends/packages/*') }}
|
||||||
|
|
||||||
- name: Determine PR Base SHA
|
- name: Determine PR Base SHA
|
||||||
id: vars
|
id: vars
|
||||||
|
Loading…
Reference in New Issue
Block a user