1 name: Refresh kernel for target
16 runs-on: ubuntu-latest
18 owner_lc: ${{ steps.lower_owner.outputs.owner_lc }}
21 - name: Set lower case owner name
24 OWNER_LC=$(echo "${{ github.repository_owner }}" \
25 | tr '[:upper:]' '[:lower:]')
26 echo "owner_lc=$OWNER_LC" >> $GITHUB_OUTPUT
29 name: Check Kernel patches
31 runs-on: ubuntu-latest
33 container: ghcr.io/${{ needs.setup_build.outputs.owner_lc }}/tools:latest
40 - name: Checkout master directory
41 uses: actions/checkout@v3
45 - name: Fix permission
47 chown -R buildbot:buildbot openwrt
49 - name: Initialization environment
51 TARGET=$(echo ${{ inputs.target }} | cut -d "/" -f 1)
52 SUBTARGET=$(echo ${{ inputs.target }} | cut -d "/" -f 2)
53 echo "TARGET=$TARGET" >> "$GITHUB_ENV"
54 echo "SUBTARGET=$SUBTARGET" >> "$GITHUB_ENV"
56 - name: Extract prebuilt tools
57 shell: su buildbot -c "sh -e {0}"
58 working-directory: openwrt
59 run: ./scripts/ext-tools.sh --tools /tools.tar
61 - name: Configure system
62 shell: su buildbot -c "sh -e {0}"
63 working-directory: openwrt
65 echo CONFIG_ALL_KMODS=y >> .config
66 echo CONFIG_DEVEL=y >> .config
67 echo CONFIG_AUTOREMOVE=y >> .config
68 echo CONFIG_CCACHE=y >> .config
70 echo "CONFIG_TARGET_${{ env.TARGET }}=y" >> .config
71 echo "CONFIG_TARGET_${{ env.TARGET }}_${{ env.SUBTARGET }}=y" >> .config
76 shell: su buildbot -c "sh -e {0}"
77 working-directory: openwrt
78 run: make tools/quilt/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
80 - name: Refresh Kernel patches
81 shell: su buildbot -c "sh -e {0}"
82 working-directory: openwrt
84 make target/linux/refresh V=s
86 . .github/workflows/scripts/ci_helpers.sh
88 if git diff --name-only --exit-code; then
89 success "Kernel patches for ${{ env.TARGET }}/${{ env.SUBTARGET }} seems ok"
91 err "Kernel patches for ${{ env.TARGET }}/${{ env.SUBTARGET }} require refresh. (run 'make target/linux/refresh' and force push this pr)"