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

@@ -186,16 +186,17 @@ 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 /builder/openwrt /builder/tmp sudo mkdir -p $GITHUB_WORKSPACE/_temp
sudo chown -R $USER:$USER /builder #sudo chown -R $USER:$USER $GITHUB_WORKSPACE
echo "GITHUB_WORKSPACE=/builder/openwrt" >> $GITHUB_ENV echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE"
echo "RUNNER_TEMP=/builder/tmp" >> $GITHUB_ENV 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
with:
path: /builder/openwrt
- name: Download OpenWrt sources - name: Download OpenWrt sources
run: | run: |
@@ -231,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
@@ -353,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
@@ -369,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
@@ -402,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