[no ci] Workflow: update cache once per month (#1349)

pull/1350/head
viktorxda 2024-03-17 16:58:23 +01:00 committed by GitHub
parent 305e09775d
commit 3b10d6775a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 11 deletions

View File

@ -166,27 +166,28 @@ jobs:
- name: Checkout source
uses: actions/checkout@v4
- name: Prepare ccache
run: |
echo CACHE_DATE=$(date +%m) >> ${GITHUB_ENV}
- name: Setup ccache
if: github.event_name != 'pull_request'
uses: actions/cache@v4
with:
path: /tmp/ccache
key: ${{matrix.platform}}_${{matrix.release}}
key: ${{matrix.platform}}_${{matrix.release}}-${{env.CACHE_DATE}}
- name: Restore ccache
if: github.event_name == 'pull_request'
uses: actions/cache/restore@v4
with:
path: /tmp/ccache
key: ${{matrix.platform}}_${{matrix.release}}
key: ${{matrix.platform}}_${{matrix.release}}-${{env.CACHE_DATE}}
- name: Download files
run: |
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
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
- name: Build firmware

View File

@ -23,6 +23,12 @@ jobs:
# Sigmastar [I6E]
- {"platform": "ssc338q"}
# Ingenic [T31]
- {"platform": "t31"}
# Ingenic [T40]
- {"platform": "t40"}
# Hisilicon [HI3516CV100]
- {"platform": "hi3516cv100"}
@ -44,12 +50,6 @@ jobs:
# Hisilicon [HI3536CV100]
- {"platform": "hi3536cv100"}
# Ingenic [T31]
- {"platform": "t31"}
# Ingenic [T40]
- {"platform": "t40"}
# Goke [GK710X]
- {"platform": "gk7102"}