mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2026-01-02 20:13:37 +05:00
build: Disable step "Cache toolchain" and fix host dir
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -259,9 +259,12 @@ jobs:
|
||||
- name: Prepare for use cache of tools and toolchain
|
||||
run: |
|
||||
echo "G_TARGET_ARCH = $G_TARGET_ARCH"
|
||||
rm -rf staging_dir/
|
||||
rm -rf build_dir/
|
||||
|
||||
mkdir -p staging_dir/host
|
||||
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
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -272,6 +275,7 @@ jobs:
|
||||
host-tools-${{ runner.os }}-
|
||||
|
||||
- name: Cache toolchain
|
||||
if: false
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: staging_dir/toolchain-*
|
||||
@@ -280,7 +284,13 @@ jobs:
|
||||
restore-keys: |
|
||||
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
|
||||
if: false
|
||||
run: |
|
||||
free -h
|
||||
sudo swapoff -a || true
|
||||
|
||||
Reference in New Issue
Block a user