CI: remove use of source cache, use artifacts instead
This commit is contained in:
parent
53b975ff79
commit
dbf58162db
47
.github/workflows/build.yml
vendored
47
.github/workflows/build.yml
vendored
@ -108,21 +108,14 @@ jobs:
|
|||||||
path: sources/testing
|
path: sources/testing
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Create Source Bundle
|
- name: Tar sources
|
||||||
run: tar -czf sources.tar.gz sources
|
run: tar zcf sources.tar.gz sources
|
||||||
- name: Archive Source Bundle
|
- name: Archive Source Bundle
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: source-bundle
|
name: source-bundle
|
||||||
path: sources.tar.gz
|
path: sources.tar.gz
|
||||||
|
|
||||||
- name: Cache Source
|
|
||||||
id: cache-source
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: sources
|
|
||||||
key: build-sources-${{ github.run_id }}
|
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
needs: Fetch-Source
|
needs: Fetch-Source
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -134,25 +127,13 @@ 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]
|
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:
|
steps:
|
||||||
- name: Fetch Cached Source
|
|
||||||
id: cache-source
|
|
||||||
uses: actions/cache@v2
|
|
||||||
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
|
- name: Download Source Artifact
|
||||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: source-bundle
|
name: source-bundle
|
||||||
path: ./
|
path: .
|
||||||
- name: Extract Source Artifact
|
- name: Extract sources
|
||||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
run: tar zxf sources.tar.gz
|
||||||
run: tar -xf sources.tar.gz
|
|
||||||
|
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
uses: azure/docker-login@v1
|
uses: azure/docker-login@v1
|
||||||
with:
|
with:
|
||||||
@ -190,25 +171,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
boards: [arm-12, avr-mips-riscv-x86-xtensa, sim]
|
boards: [arm-12, avr-mips-riscv-x86-xtensa, sim]
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch Cached Source
|
|
||||||
id: cache-source
|
|
||||||
uses: actions/cache@v2
|
|
||||||
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
|
- name: Download Source Artifact
|
||||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: source-bundle
|
name: source-bundle
|
||||||
path: ./
|
path: .
|
||||||
- name: Extract Source Artifact
|
- name: Extract sources
|
||||||
if: steps.cache-source.outputs.cache-hit != 'true'
|
run: tar zxf sources.tar.gz
|
||||||
run: tar -xf sources.tar.gz
|
|
||||||
|
|
||||||
- name: Restore Tools Cache
|
- name: Restore Tools Cache
|
||||||
id: cache-tools
|
id: cache-tools
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user