CI: don't cache sources, use artifacts only
This commit is contained in:
parent
ecae66fe59
commit
5e20ccd366
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@ -110,13 +110,6 @@ jobs:
|
||||
name: source-bundle
|
||||
path: sources.tar.gz
|
||||
|
||||
- name: Cache Source
|
||||
id: cache-source
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: sources
|
||||
key: build-sources-${{ github.run_id }}
|
||||
|
||||
Linux:
|
||||
needs: Fetch-Source
|
||||
runs-on: ubuntu-latest
|
||||
@ -128,23 +121,12 @@ jobs:
|
||||
boards: [arm-01, arm-02, arm-03, arm-04, arm-05, arm-06, arm-07, arm-08, arm-09, arm-10, arm-11, arm-12, arm-13, avr-mips-riscv-x86-xtensa, sim]
|
||||
|
||||
steps:
|
||||
- name: Fetch Cached Source
|
||||
id: cache-source
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: sources-cache
|
||||
key: build-sources-${{ github.run_id }}
|
||||
- name: Prevent Updating Source Cache
|
||||
if: steps.cache-source.outputs.cache-hit == 'true'
|
||||
run: mv sources-cache sources
|
||||
- name: Download Source Artifact
|
||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: source-bundle
|
||||
path: ./
|
||||
- name: Extract Source Artifact
|
||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
||||
run: tar -xf sources.tar.gz
|
||||
|
||||
- name: Docker Login
|
||||
@ -189,23 +171,12 @@ jobs:
|
||||
matrix:
|
||||
boards: [arm-12, avr-mips-riscv-x86-xtensa, sim]
|
||||
steps:
|
||||
- name: Fetch Cached Source
|
||||
id: cache-source
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: sources-cache
|
||||
key: build-sources-${{ github.run_id }}
|
||||
- name: Prevent Updating Source Cache
|
||||
if: steps.cache-source.outputs.cache-hit == 'true'
|
||||
run: mv sources-cache sources
|
||||
- name: Download Source Artifact
|
||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: source-bundle
|
||||
path: ./
|
||||
- name: Extract Source Artifact
|
||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
||||
run: tar -xf sources.tar.gz
|
||||
|
||||
- name: Restore Tools Cache
|
||||
|
Loading…
Reference in New Issue
Block a user