diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-09-05 23:18:00 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-12-04 17:36:55 +0100 |
commit | daeb367dc1bf0c14ebbd96b4b55d1adab7befd0b (patch) | |
tree | 664dc2112813f26ec33991183d5603de1f1e2855 /.github/workflows/kernel.yml | |
parent | fccf42cb0502d1eae99ab8d467a1c41db83d5232 (diff) | |
download | upstream-daeb367dc1bf0c14ebbd96b4b55d1adab7befd0b.tar.gz upstream-daeb367dc1bf0c14ebbd96b4b55d1adab7befd0b.tar.bz2 upstream-daeb367dc1bf0c14ebbd96b4b55d1adab7befd0b.zip |
CI: use tools:latest container to speedup kernel workflow
Use tools:latest container with prebuilt host tools to speedup kernel
compilation in kernel workflow.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 5d09118f8e60fa151e03916f255f5511e197af68)
Diffstat (limited to '.github/workflows/kernel.yml')
-rw-r--r-- | .github/workflows/kernel.yml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml index db4c6c7319..c4553aaa4e 100644 --- a/.github/workflows/kernel.yml +++ b/.github/workflows/kernel.yml @@ -49,7 +49,11 @@ jobs: matrix: target: ${{fromJson(needs.determine_targets.outputs.target)}} - container: registry.gitlab.com/openwrt/buildbot/buildworker-3.4.1 + container: ghcr.io/${{ github.repository_owner }}/tools:latest + + permissions: + contents: read + packages: read steps: - name: Checkout master directory @@ -125,19 +129,24 @@ jobs: wget -O - https://downloads.cdn.openwrt.org/snapshots/targets/${{ env.TARGET }}/${{ env.SUBTARGET }}/${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 external toolchain shell: su buildbot -c "sh -e {0}" working-directory: openwrt run: | echo CONFIG_ALL_KMODS=y >> .config + echo CONFIG_DEVEL=y >> .config + echo CONFIG_AUTOREMOVE=y >> .config ./scripts/ext-toolchain.sh \ --toolchain ${{ env.TOOLCHAIN_FILE }}/toolchain-* \ --overwrite-config \ --config ${{ env.TARGET }}/${{ env.SUBTARGET }} - make defconfig - - name: Show configuration shell: su buildbot -c "sh -e {0}" working-directory: openwrt |