mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Testing actions
This commit is contained in:
parent
b359d1faad
commit
c47b21e772
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
@ -14,9 +14,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# Check cache
|
# Check dl cache
|
||||||
|
- name: Cache downloads
|
||||||
|
id: dl-cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/dl
|
||||||
|
key: ${{ runner.os }}-dl
|
||||||
|
|
||||||
|
# Check buildroot cache
|
||||||
- name: Cache buildroot
|
- name: Cache buildroot
|
||||||
id: cache
|
id: br-cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: .buildroot
|
path: .buildroot
|
||||||
@ -61,9 +69,9 @@ jobs:
|
|||||||
[ ${STATUS} -ne 200 ] && exit 1
|
[ ${STATUS} -ne 200 ] && exit 1
|
||||||
echo OK
|
echo OK
|
||||||
|
|
||||||
# Prepare buildroot for first make (for cache)
|
# Clone buildroot repository (if not cached)
|
||||||
- name: Prepare buildroot
|
- name: Clone buildroot
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.br-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
git clone --single-branch -b 2022.02 https://github.com/buildroot/buildroot.git .buildroot
|
git clone --single-branch -b 2022.02 https://github.com/buildroot/buildroot.git .buildroot
|
||||||
# Copy files
|
# Copy files
|
||||||
@ -72,10 +80,22 @@ jobs:
|
|||||||
cd .buildroot
|
cd .buildroot
|
||||||
echo "Generating default config"
|
echo "Generating default config"
|
||||||
make BR2_EXTERNAL=../external arpl_defconfig
|
make BR2_EXTERNAL=../external arpl_defconfig
|
||||||
|
|
||||||
|
# Download sources if not cached
|
||||||
|
- name: Download buildroot packages source
|
||||||
|
if: steps.dl-cache.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd .buildroot
|
||||||
|
make BR2_EXTERNAL=../external source
|
||||||
|
|
||||||
|
# Prepare buildroot for first make
|
||||||
|
- name: Prepare buildroot
|
||||||
|
if: steps.br-cache.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
echo "First make"
|
echo "First make"
|
||||||
make BR2_EXTERNAL=../external
|
make BR2_EXTERNAL=../external
|
||||||
|
|
||||||
# Build incremental from cache
|
# Build incremental from caches
|
||||||
- name: Build image
|
- name: Build image
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
BR2_x86_64=y
|
BR2_x86_64=y
|
||||||
|
BR2_DL_DIR="$(HOME)/dl"
|
||||||
BR2_CCACHE=y
|
BR2_CCACHE=y
|
||||||
BR2_CCACHE_DIR=".buildroot-ccache"
|
BR2_CCACHE_DIR=".buildroot-ccache"
|
||||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user