mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2025-12-31 11:03:36 +05:00
build: Add make tools and toolchain
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -232,16 +232,27 @@ jobs:
|
|||||||
echo "====== .config ========="
|
echo "====== .config ========="
|
||||||
cat $BUILD_ROOT/.config
|
cat $BUILD_ROOT/.config
|
||||||
echo "========================"
|
echo "========================"
|
||||||
|
|
||||||
|
- name: Build tools and toolchain
|
||||||
|
id: tools
|
||||||
|
if: steps.configure.outputs.status == 'success'
|
||||||
|
run: |
|
||||||
|
cd $BUILD_ROOT
|
||||||
|
MAKE_JOBS=$(nproc)
|
||||||
|
echo "$MAKE_JOBS thread compile"
|
||||||
|
make tools/install -j$MAKE_JOBS
|
||||||
|
make toolchain/install -j$MAKE_JOBS
|
||||||
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build the firmware image
|
- name: Build the firmware image
|
||||||
id: compile
|
id: compile
|
||||||
if: steps.configure.outputs.status == 'success'
|
if: steps.tools.outputs.status == 'success'
|
||||||
env:
|
env:
|
||||||
TARGET: ${{ matrix.target }}
|
TARGET: ${{ matrix.target }}
|
||||||
FW_VER: ${{ needs.check.outputs.fw_ver }}
|
FW_VER: ${{ needs.check.outputs.fw_ver }}
|
||||||
run: |
|
run: |
|
||||||
cd $BUILD_ROOT
|
cd $BUILD_ROOT
|
||||||
MAKE_JOBS=$(($(nproc)+1))
|
MAKE_JOBS=$(nproc)
|
||||||
echo "$MAKE_JOBS thread compile"
|
echo "$MAKE_JOBS thread compile"
|
||||||
if [ "$FAKE_BUILD" != "true" -a "$TEST_BUILD" = "true" -a "$PACKAGE_DIR" != "" ]; then
|
if [ "$FAKE_BUILD" != "true" -a "$TEST_BUILD" = "true" -a "$PACKAGE_DIR" != "" ]; then
|
||||||
make $PACKAGE_DIR/compile V=sc BUILD_LOG=1
|
make $PACKAGE_DIR/compile V=sc BUILD_LOG=1
|
||||||
|
|||||||
Reference in New Issue
Block a user