FROM registry.gitlab.com/openwrt/buildbot/buildworker-3.4.1
-COPY --chown=buildbot:buildbot tools.tar /tools.tar
+COPY --chown=buildbot staging_dir/host /prebuilt_tools/staging_dir/host
+COPY --chown=buildbot build_dir/host /prebuilt_tools/build_dir/host
if: inputs.generate_prebuilt_artifacts == true
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
- run: tar --mtime=now -cf tools.tar staging_dir/host build_dir/host
+ run: tar -cf tools.tar staging_dir/host build_dir/host
- name: Upload prebuilt tools
if: inputs.generate_prebuilt_artifacts == true
echo "TARGET=$TARGET" >> "$GITHUB_ENV"
echo "SUBTARGET=$SUBTARGET" >> "$GITHUB_ENV"
+ - name: Prepare prebuilt tools
+ shell: su buildbot -c "sh -e {0}"
+ working-directory: openwrt
+ run: |
+ mkdir -p staging_dir build_dir
+ ln -s /prebuilt_tools/staging_dir/host staging_dir/host
+ ln -s /prebuilt_tools/build_dir/host build_dir/host
+
+ ./scripts/ext-tools.sh --refresh
+
- name: Update & Install feeds
if: inputs.include_feeds == true
shell: su buildbot -c "sh -e {0}"
wget -O - https://downloads.cdn.openwrt.org/${{ env.TOOLCHAIN_PATH }}/targets/${{ env.TARGET }}/${{ env.SUBTARGET }}/${{ env.TOOLCHAIN_FILE }}.tar.xz \
| tar --xz -xf -
- - name: Extract prebuilt tools
- shell: su buildbot -c "sh -e {0}"
- working-directory: openwrt
- run: ./scripts/ext-tools.sh --tools /tools.tar
-
- name: Configure testing kernel
if: inputs.testing == true
shell: su buildbot -c "sh -e {0}"
echo "TARGET=$TARGET" >> "$GITHUB_ENV"
echo "SUBTARGET=$SUBTARGET" >> "$GITHUB_ENV"
- - name: Extract prebuilt tools
+ - name: Prepare prebuilt tools
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
- run: ./scripts/ext-tools.sh --tools /tools.tar
+ run: |
+ mkdir -p staging_dir build_dir
+ ln -sf /prebuilt_tools/staging_dir/host staging_dir/host
+ ln -sf /prebuilt_tools/build_dir/host build_dir/host
+
+ ./scripts/ext-tools.sh --refresh
- name: Configure testing kernel
if: inputs.testing == true
name: linux-buildbot-prebuilt-tools
path: openwrt
+ - name: Extract prebuild tools
+ working-directory: openwrt
+ run: tar -xf tools.tar
+
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with: