2 Commits

Author SHA1 Message Date
remittor
a8f744bf4b test 2 2026-01-02 22:49:37 +03:00
remittor
f01482890b build: Add step "Set fixed workspace" 2026-01-02 18:59:05 +03:00

View File

@@ -53,8 +53,6 @@ env:
REPO_LNK: openwrt-xiaomi/openwrt
REPO_BRANCH: xq-25.12
TAG_PREFIX: v25-
DEPENDENCIES: ${{ github.workspace }}/dependencies-ubuntu.txt
RUNNER_TEMP: ${{ github.workspace }}/_temp
TZ: UTC
DEVICE_NAME: unknown
BUILD_DATE: unknown
@@ -186,7 +184,17 @@ jobs:
remove-haskell: true
remove-codeql: true
remove-docker-images: true
- name: Set fixed workspace
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
run: |
sudo mkdir -p $GITHUB_WORKSPACE/_temp
#sudo chown -R $USER:$USER $GITHUB_WORKSPACE
echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE"
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "RUNNER_TEMP=$GITHUB_WORKSPACE/_temp" >> $GITHUB_ENV
- name: Checkout builder
uses: actions/checkout@main
@@ -224,7 +232,7 @@ jobs:
if: github.event.inputs.use_cache == 'true'
uses: actions/cache/restore@v4
with:
key: host-tools-${{ hashFiles('tools/**') }}
key: host-tools-001-${{ hashFiles('tools/**') }}
path: |
staging_dir/host
build_dir/host
@@ -243,6 +251,8 @@ jobs:
- name: Inspect restored host tools
if: github.event.inputs.use_cache == 'true'
run: |
echo "====== openwrt-native.txt ======"
cat build_dir/host/pkgconf-*/openwrt-native.txt || true
echo "====== staging_dir/host ====="
du -sh staging_dir/host || true
ls -la staging_dir/host || true
@@ -344,7 +354,7 @@ jobs:
if: steps.tools.outputs.status == 'success' && github.event.inputs.use_cache != 'true'
uses: actions/cache/save@v4
with:
key: host-tools-${{ hashFiles('tools/**') }}
key: host-tools-001-${{ hashFiles('tools/**') }}
path: |
staging_dir/host
build_dir/host
@@ -360,12 +370,18 @@ jobs:
- name: Kernel compile
id: kernel
if: false # ${{ steps.tools.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }}
if: ${{ steps.tools.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }}
run: |
make target/linux/compile -j$(npoc)
make target/linux/install -j$(npoc)
make target/linux/dtb -j$(npoc)
make target/linux/prereq
echo "status=success" >> $GITHUB_OUTPUT
make package/feeds/packages/mdio-netlink/compile V=s --debug=j
- name: XXX compile
if: false # ${{ steps.tools.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }}
run: |
make package/utils/lua/host/compile
make package/system/apk/host/compile
make make package/feeds/packages/mdio-netlink/compile V=sc
echo "status=success" >> $GITHUB_OUTPUT
- name: Monitor memory 2
@@ -393,7 +409,7 @@ jobs:
fi
if [ "$FAKE_BUILD" != "true" ]; then
if [ "$TEST_BUILD" != "true" ]; then
make -j$(nproc) download world
make -j$(nproc) world
else
make V=sc world
fi