mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
optimize cache
This commit is contained in:
parent
a93b09af28
commit
74d25e6a1c
21
.github/workflows/main.yml
vendored
21
.github/workflows/main.yml
vendored
@ -51,17 +51,17 @@ jobs:
|
|||||||
sudo apt install -y jq gawk gettext libelf-dev qemu-utils
|
sudo apt install -y jq gawk gettext libelf-dev qemu-utils
|
||||||
sudo snap install yq
|
sudo snap install yq
|
||||||
|
|
||||||
# Check buildroot cache
|
# Restore buildroot cache
|
||||||
- name: Cache buildroot
|
- name: Cache buildroot
|
||||||
id: br-cache
|
id: re-cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: .buildroot
|
path: .buildroot
|
||||||
key: ${{ runner.os }}-${{ hashFiles('files/configs/arpl_defconfig') }}
|
key: ${{ runner.os }}-${{ hashFiles('files/configs/arpl_defconfig') }}
|
||||||
|
|
||||||
# Clone buildroot repository (if not cached)
|
# build buildroot repository (if not restore cached)
|
||||||
- name: Clone buildroot
|
- name: Build buildroot
|
||||||
if: steps.br-cache.outputs.cache-hit != 'true'
|
if: steps.re-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
git clone --single-branch -b 2023.02.x https://github.com/buildroot/buildroot.git .buildroot
|
git clone --single-branch -b 2023.02.x https://github.com/buildroot/buildroot.git .buildroot
|
||||||
# Copy files
|
# Copy files
|
||||||
@ -75,6 +75,15 @@ jobs:
|
|||||||
echo "Prepare buildroot for first make"
|
echo "Prepare buildroot for first make"
|
||||||
make BR2_EXTERNAL=./external -j$(nproc)
|
make BR2_EXTERNAL=./external -j$(nproc)
|
||||||
|
|
||||||
|
# Save buildroot cache
|
||||||
|
- name: Save buildroot
|
||||||
|
if: steps.re-cache.outputs.cache-hit != 'true'
|
||||||
|
id: cache-primes-save
|
||||||
|
uses: actions/cache/save@v3
|
||||||
|
with:
|
||||||
|
path: .buildroot
|
||||||
|
key: ${{ runner.os }}-${{ hashFiles('files/configs/arpl_defconfig') }}
|
||||||
|
|
||||||
# calculates the version number and push
|
# calculates the version number and push
|
||||||
- name: Calculate version
|
- name: Calculate version
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user