mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2026-02-11 19:57:06 +05:00
Compare commits
1 Commits
a8f744bf4b
...
fc389e30c1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc389e30c1 |
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@@ -186,17 +186,16 @@ jobs:
|
|||||||
remove-docker-images: true
|
remove-docker-images: true
|
||||||
|
|
||||||
- name: Set fixed workspace
|
- name: Set fixed workspace
|
||||||
env:
|
|
||||||
GITHUB_WORKSPACE: ${{ github.workspace }}
|
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir -p $GITHUB_WORKSPACE/_temp
|
sudo mkdir -p /builder/openwrt /builder/tmp
|
||||||
#sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
sudo chown -R $USER:$USER /builder
|
||||||
echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE"
|
echo "GITHUB_WORKSPACE=/builder/openwrt" >> $GITHUB_ENV
|
||||||
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
echo "RUNNER_TEMP=/builder/tmp" >> $GITHUB_ENV
|
||||||
echo "RUNNER_TEMP=$GITHUB_WORKSPACE/_temp" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Checkout builder
|
- name: Checkout builder
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
with:
|
||||||
|
path: /builder/openwrt
|
||||||
|
|
||||||
- name: Download OpenWrt sources
|
- name: Download OpenWrt sources
|
||||||
run: |
|
run: |
|
||||||
@@ -232,7 +231,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-001-${{ hashFiles('tools/**') }}
|
key: host-tools-${{ hashFiles('tools/**') }}
|
||||||
path: |
|
path: |
|
||||||
staging_dir/host
|
staging_dir/host
|
||||||
build_dir/host
|
build_dir/host
|
||||||
@@ -354,7 +353,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-001-${{ hashFiles('tools/**') }}
|
key: host-tools-${{ hashFiles('tools/**') }}
|
||||||
path: |
|
path: |
|
||||||
staging_dir/host
|
staging_dir/host
|
||||||
build_dir/host
|
build_dir/host
|
||||||
@@ -370,18 +369,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Kernel compile
|
- name: Kernel compile
|
||||||
id: kernel
|
id: kernel
|
||||||
if: ${{ steps.tools.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }}
|
|
||||||
run: |
|
|
||||||
make target/linux/compile -j$(npoc)
|
|
||||||
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' }}
|
if: false # ${{ steps.tools.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
make package/utils/lua/host/compile
|
make target/linux/compile -j$(npoc)
|
||||||
make package/system/apk/host/compile
|
make target/linux/install -j$(npoc)
|
||||||
make make package/feeds/packages/mdio-netlink/compile V=sc
|
make target/linux/dtb -j$(npoc)
|
||||||
|
make target/linux/prereq
|
||||||
echo "status=success" >> $GITHUB_OUTPUT
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Monitor memory 2
|
- name: Monitor memory 2
|
||||||
@@ -409,7 +402,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) world
|
make -j$(nproc) download world
|
||||||
else
|
else
|
||||||
make V=sc world
|
make V=sc world
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user