mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2026-02-11 11:47:07 +05:00
Compare commits
2 Commits
fc389e30c1
...
a8f744bf4b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8f744bf4b | ||
|
|
f01482890b |
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@@ -53,8 +53,6 @@ env:
|
|||||||
REPO_LNK: openwrt-xiaomi/openwrt
|
REPO_LNK: openwrt-xiaomi/openwrt
|
||||||
REPO_BRANCH: xq-25.12
|
REPO_BRANCH: xq-25.12
|
||||||
TAG_PREFIX: v25-
|
TAG_PREFIX: v25-
|
||||||
DEPENDENCIES: ${{ github.workspace }}/dependencies-ubuntu.txt
|
|
||||||
RUNNER_TEMP: ${{ github.workspace }}/_temp
|
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
DEVICE_NAME: unknown
|
DEVICE_NAME: unknown
|
||||||
BUILD_DATE: unknown
|
BUILD_DATE: unknown
|
||||||
@@ -187,6 +185,16 @@ jobs:
|
|||||||
remove-codeql: true
|
remove-codeql: true
|
||||||
remove-docker-images: 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
|
- name: Checkout builder
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
@@ -224,7 +232,7 @@ jobs:
|
|||||||
if: github.event.inputs.use_cache == 'true'
|
if: github.event.inputs.use_cache == 'true'
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
key: host-tools-${{ hashFiles('tools/**') }}
|
key: host-tools-001-${{ hashFiles('tools/**') }}
|
||||||
path: |
|
path: |
|
||||||
staging_dir/host
|
staging_dir/host
|
||||||
build_dir/host
|
build_dir/host
|
||||||
@@ -243,6 +251,8 @@ jobs:
|
|||||||
- name: Inspect restored host tools
|
- name: Inspect restored host tools
|
||||||
if: github.event.inputs.use_cache == 'true'
|
if: github.event.inputs.use_cache == 'true'
|
||||||
run: |
|
run: |
|
||||||
|
echo "====== openwrt-native.txt ======"
|
||||||
|
cat build_dir/host/pkgconf-*/openwrt-native.txt || true
|
||||||
echo "====== staging_dir/host ====="
|
echo "====== staging_dir/host ====="
|
||||||
du -sh staging_dir/host || true
|
du -sh staging_dir/host || true
|
||||||
ls -la 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'
|
if: steps.tools.outputs.status == 'success' && github.event.inputs.use_cache != 'true'
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
key: host-tools-${{ hashFiles('tools/**') }}
|
key: host-tools-001-${{ hashFiles('tools/**') }}
|
||||||
path: |
|
path: |
|
||||||
staging_dir/host
|
staging_dir/host
|
||||||
build_dir/host
|
build_dir/host
|
||||||
@@ -360,12 +370,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Kernel compile
|
- name: Kernel compile
|
||||||
id: kernel
|
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: |
|
run: |
|
||||||
make target/linux/compile -j$(npoc)
|
make target/linux/compile -j$(npoc)
|
||||||
make target/linux/install -j$(npoc)
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
make target/linux/dtb -j$(npoc)
|
make package/feeds/packages/mdio-netlink/compile V=s --debug=j
|
||||||
make target/linux/prereq
|
|
||||||
|
- 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
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Monitor memory 2
|
- name: Monitor memory 2
|
||||||
@@ -393,7 +409,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
if [ "$FAKE_BUILD" != "true" ]; then
|
if [ "$FAKE_BUILD" != "true" ]; then
|
||||||
if [ "$TEST_BUILD" != "true" ]; then
|
if [ "$TEST_BUILD" != "true" ]; then
|
||||||
make -j$(nproc) download world
|
make -j$(nproc) world
|
||||||
else
|
else
|
||||||
make V=sc world
|
make V=sc world
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user