mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2026-02-28 03:57:05 +05:00
build: Disable step "Cache toolchain" and fix host dir
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -259,8 +259,11 @@ jobs:
|
|||||||
- name: Prepare for use cache of tools and toolchain
|
- name: Prepare for use cache of tools and toolchain
|
||||||
run: |
|
run: |
|
||||||
echo "G_TARGET_ARCH = $G_TARGET_ARCH"
|
echo "G_TARGET_ARCH = $G_TARGET_ARCH"
|
||||||
rm -rf staging_dir/
|
mkdir -p staging_dir/host
|
||||||
rm -rf build_dir/
|
rm -rf /tmp/staging-host
|
||||||
|
mkdir -p /tmp/staging-host
|
||||||
|
cp -a staging_dir/host/* /tmp/staging-host/
|
||||||
|
rm -rf staging_dir/host/*
|
||||||
|
|
||||||
- name: Cache host tools
|
- name: Cache host tools
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -272,6 +275,7 @@ jobs:
|
|||||||
host-tools-${{ runner.os }}-
|
host-tools-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Cache toolchain
|
- name: Cache toolchain
|
||||||
|
if: false
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: staging_dir/toolchain-*
|
path: staging_dir/toolchain-*
|
||||||
@@ -280,7 +284,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
toolchain-${{ env.G_TARGET_ARCH }}-
|
toolchain-${{ env.G_TARGET_ARCH }}-
|
||||||
|
|
||||||
|
- name: Restore saved host staging
|
||||||
|
run: |
|
||||||
|
cp -af /tmp/staging-host/* staging_dir/host
|
||||||
|
rm -rf /tmp/staging-host
|
||||||
|
|
||||||
- name: Increase swap to 16G
|
- name: Increase swap to 16G
|
||||||
|
if: false
|
||||||
run: |
|
run: |
|
||||||
free -h
|
free -h
|
||||||
sudo swapoff -a || true
|
sudo swapoff -a || true
|
||||||
|
|||||||
Reference in New Issue
Block a user