mirror of https://github.com/OpenIPC/firmware.git
[no ci] Workflow: update cache once per month (#1349)
parent
305e09775d
commit
3b10d6775a
|
@ -166,27 +166,28 @@ jobs:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Prepare ccache
|
||||||
|
run: |
|
||||||
|
echo CACHE_DATE=$(date +%m) >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/ccache
|
path: /tmp/ccache
|
||||||
key: ${{matrix.platform}}_${{matrix.release}}
|
key: ${{matrix.platform}}_${{matrix.release}}-${{env.CACHE_DATE}}
|
||||||
|
|
||||||
- name: Restore ccache
|
- name: Restore ccache
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/ccache
|
path: /tmp/ccache
|
||||||
key: ${{matrix.platform}}_${{matrix.release}}
|
key: ${{matrix.platform}}_${{matrix.release}}-${{env.CACHE_DATE}}
|
||||||
|
|
||||||
- name: Download files
|
- name: Download files
|
||||||
run: |
|
run: |
|
||||||
echo "8.8.8.8 invisible-mirror.net" | sudo tee -a /etc/hosts
|
echo "8.8.8.8 invisible-mirror.net" | sudo tee -a /etc/hosts
|
||||||
echo "8.8.8.8 distfiles.dereferenced.org" | sudo tee -a /etc/hosts
|
echo "8.8.8.8 distfiles.dereferenced.org" | sudo tee -a /etc/hosts
|
||||||
make prepare
|
|
||||||
git clone https://github.com/openipc/br-cache
|
|
||||||
ln -s ${GITHUB_WORKSPACE}/br-cache $(ls -d output/buildroot-*)/dl
|
|
||||||
make BOARD=${{matrix.platform}}_${{matrix.release}} br-source
|
make BOARD=${{matrix.platform}}_${{matrix.release}} br-source
|
||||||
|
|
||||||
- name: Build firmware
|
- name: Build firmware
|
||||||
|
|
|
@ -23,6 +23,12 @@ jobs:
|
||||||
# Sigmastar [I6E]
|
# Sigmastar [I6E]
|
||||||
- {"platform": "ssc338q"}
|
- {"platform": "ssc338q"}
|
||||||
|
|
||||||
|
# Ingenic [T31]
|
||||||
|
- {"platform": "t31"}
|
||||||
|
|
||||||
|
# Ingenic [T40]
|
||||||
|
- {"platform": "t40"}
|
||||||
|
|
||||||
# Hisilicon [HI3516CV100]
|
# Hisilicon [HI3516CV100]
|
||||||
- {"platform": "hi3516cv100"}
|
- {"platform": "hi3516cv100"}
|
||||||
|
|
||||||
|
@ -44,12 +50,6 @@ jobs:
|
||||||
# Hisilicon [HI3536CV100]
|
# Hisilicon [HI3536CV100]
|
||||||
- {"platform": "hi3536cv100"}
|
- {"platform": "hi3536cv100"}
|
||||||
|
|
||||||
# Ingenic [T31]
|
|
||||||
- {"platform": "t31"}
|
|
||||||
|
|
||||||
# Ingenic [T40]
|
|
||||||
- {"platform": "t40"}
|
|
||||||
|
|
||||||
# Goke [GK710X]
|
# Goke [GK710X]
|
||||||
- {"platform": "gk7102"}
|
- {"platform": "gk7102"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue