6 generate_prebuilt_artifacts:
15 runs-on: ubuntu-latest
16 container: registry.gitlab.com/openwrt/buildbot/buildworker-3.4.1
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
37 shell: su buildbot -c "sh -e {0}"
38 working-directory: openwrt
42 shell: su buildbot -c "sh -e {0}"
43 working-directory: openwrt
44 run: make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
48 uses: actions/upload-artifact@v3
50 name: linux-buildbot-logs
55 uses: actions/upload-artifact@v3
57 name: linux-buildbot-config
60 - name: Archive prebuilt tools
61 if: inputs.generate_prebuilt_artifacts == true
62 shell: su buildbot -c "sh -e {0}"
63 working-directory: openwrt
64 run: tar --mtime=now -cf tools.tar staging_dir/host build_dir/host dl
66 - name: Upload prebuilt tools
67 if: inputs.generate_prebuilt_artifacts == true
68 uses: actions/upload-artifact@v3
70 name: linux-buildbot-prebuilt-tools
71 path: openwrt/tools.tar