keep the ccache

This commit is contained in:
Nathan Friedly
2023-03-29 16:41:44 -04:00
committed by GitHub
parent fc6a6b79b1
commit d5f813447f

View File

@@ -18,7 +18,15 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- if: inputs.submodule - if: inputs.submodule
run: git submodule update --init --depth 1 -- ${{ inputs.submodule }} run: git submodule update --init --depth 1 -- ${{ inputs.submodule }}
- name: retrieve ccache
uses: actions/cache@v3
with:
path: ~/.buildroot-ccache
key: ${{ inputs.submodule }}-uclibc-ccache-${{ github.sha }}
restore-keys: |
${{ inputs.submodule }}-uclibc-ccache-
- name: build - name: build
run: | run: |
cd ${{ inputs.submodule || '.' }} cd ${{ inputs.submodule || '.' }}
@@ -64,7 +72,15 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- if: inputs.submodule - if: inputs.submodule
run: git submodule update --init --depth 1 -- ${{ inputs.submodule }} run: git submodule update --init --depth 1 -- ${{ inputs.submodule }}
- name: retrieve ccache
uses: actions/cache@v3
with:
path: ~/.buildroot-ccache
key: ${{ inputs.submodule }}-musl-ccache-${{ github.sha }}
restore-keys: |
${{ inputs.submodule }}-musl-ccache-
- name: build - name: build
run: | run: |
cd ${{ inputs.submodule || '.' }} cd ${{ inputs.submodule || '.' }}