ci(release test):lookup cache
This commit is contained in:
6
.github/workflows/release-build.yml
vendored
6
.github/workflows/release-build.yml
vendored
@@ -13,12 +13,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Restore Darwin sysroot cache
|
- name: Check Darwin sysroot cache
|
||||||
id: cache-darwin-sysroot
|
id: cache-darwin-sysroot
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: .sysroot/darwin.tar.gz
|
path: .sysroot/darwin.tar.gz
|
||||||
key: darwin-sysroot-${{ hashFiles('.github/workflows/populate_darwin_sysroot.sh') }}-0.0.5
|
key: darwin-sysroot-${{ hashFiles('.github/workflows/populate_darwin_sysroot.sh') }}-0.0.5
|
||||||
|
lookup-only: true
|
||||||
- name: Populate Darwin sysroot
|
- name: Populate Darwin sysroot
|
||||||
if: steps.cache-darwin-sysroot.outputs.cache-hit != 'true'
|
if: steps.cache-darwin-sysroot.outputs.cache-hit != 'true'
|
||||||
run: bash .github/workflows/populate_darwin_sysroot.sh
|
run: bash .github/workflows/populate_darwin_sysroot.sh
|
||||||
@@ -36,12 +37,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Restore Linux sysroot cache
|
- name: Check Linux sysroot cache
|
||||||
id: cache-linux-sysroot
|
id: cache-linux-sysroot
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: .sysroot/linux.tar.gz
|
path: .sysroot/linux.tar.gz
|
||||||
key: linux-sysroot-${{ hashFiles('.github/workflows/populate_linux_sysroot.sh') }}-0.0.7
|
key: linux-sysroot-${{ hashFiles('.github/workflows/populate_linux_sysroot.sh') }}-0.0.7
|
||||||
|
lookup-only: true
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
if: steps.cache-linux-sysroot.outputs.cache-hit != 'true'
|
if: steps.cache-linux-sysroot.outputs.cache-hit != 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user