6 generate_prebuilt_artifacts:
15 runs-on: ubuntu-latest
16 container: ghcr.io/openwrt/buildbot/buildworker-v3.8.0:v6
20 uses: actions/checkout@v3
24 - name: Fix permission
25 run: chown -R buildbot:buildbot openwrt
27 - name: Set configs for tools container
28 shell: su buildbot -c "sh -e {0}"
29 working-directory: openwrt
32 echo CONFIG_DEVEL=y >> .config
33 echo CONFIG_AUTOREMOVE=y >> .config
34 echo CONFIG_CCACHE=y >> .config
35 echo CONFIG_BUILD_ALL_HOST_TOOLS=y >> .config
38 shell: su buildbot -c "sh -e {0}"
39 working-directory: openwrt
43 shell: su buildbot -c "sh -e {0}"
44 working-directory: openwrt
45 run: make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
49 uses: actions/upload-artifact@v3
51 name: linux-buildbot-logs
56 uses: actions/upload-artifact@v3
58 name: linux-buildbot-config
61 - name: Archive prebuilt tools
62 if: inputs.generate_prebuilt_artifacts == true
63 shell: su buildbot -c "sh -e {0}"
64 working-directory: openwrt
65 run: tar -cf tools.tar staging_dir/host build_dir/host
67 - name: Upload prebuilt tools
68 if: inputs.generate_prebuilt_artifacts == true
69 uses: actions/upload-artifact@v3
71 name: linux-buildbot-prebuilt-tools
72 path: openwrt/tools.tar