mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
optimize the compilation process
This commit is contained in:
parent
bbfebff66d
commit
a93b09af28
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@ -51,14 +51,6 @@ jobs:
|
||||
sudo apt install -y jq gawk gettext libelf-dev qemu-utils
|
||||
sudo snap install yq
|
||||
|
||||
# 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
|
||||
id: br-cache
|
||||
@ -77,22 +69,11 @@ jobs:
|
||||
cp -Ru files/* .buildroot
|
||||
cd .buildroot
|
||||
echo "Generating default config"
|
||||
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"
|
||||
cd .buildroot
|
||||
make BR2_EXTERNAL=./external
|
||||
make BR2_EXTERNAL=./external -j$(nproc) arpl_defconfig
|
||||
echo "Download sources if not cached"
|
||||
make BR2_EXTERNAL=./external -j$(nproc) source
|
||||
echo "Prepare buildroot for first make"
|
||||
make BR2_EXTERNAL=./external -j$(nproc)
|
||||
|
||||
# calculates the version number and push
|
||||
- name: Calculate version
|
||||
@ -163,9 +144,9 @@ jobs:
|
||||
|
||||
cd .buildroot
|
||||
echo "Generating default config"
|
||||
make BR2_EXTERNAL=./external arpl_defconfig
|
||||
make BR2_EXTERNAL=./external -j$(nproc) arpl_defconfig
|
||||
echo "Building..."
|
||||
make BR2_EXTERNAL=./external
|
||||
make BR2_EXTERNAL=./external -j$(nproc)
|
||||
cd -
|
||||
# qemu-img convert -O vmdk arpl.img arpl-dyn.vmdk
|
||||
# qemu-img convert -O vmdk -o adapter_type=lsilogic arpl.img -o subformat=monolithicFlat arpl.vmdk
|
||||
@ -218,3 +199,4 @@ jobs:
|
||||
# arpl-i18n-${{ env.VERSION }}.vmdk-dyn.zip
|
||||
# arpl-i18n-${{ env.VERSION }}.vmdk-flat.zip
|
||||
update.zip
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
BR2_x86_64=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_DL_DIR="$(HOME)/dl"
|
||||
BR2_DL_DIR=".buildroot-dl"
|
||||
BR2_CCACHE=y
|
||||
BR2_CCACHE_DIR=".buildroot-ccache"
|
||||
BR2_SHARED_STATIC_LIBS=y
|
||||
|
Loading…
x
Reference in New Issue
Block a user