| 1234567891011121314151617181920212223242526 |
- name: 'Clean Kernel Flags'
- description: 'Clean dirty flags'
- runs:
- using: "composite"
- steps:
- - name: Clean Dirty Flags and ABI Exports
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- # Clean dirty flags and ABI exports based on build system
- if [ -f "build/build.sh" ]; then
- # Old build system (5.10, 5.15, early 6.1)
- sed -i 's/-dirty//' common/scripts/setlocalversion
- else
- # Bazel build system (newer kernels)
- sed -i "/stable_scmversion_cmd/s/-maybe-dirty//g" build/kernel/kleaf/impl/stamp.bzl
- sed -i 's/-dirty//' common/scripts/setlocalversion
- fi
- # Commit changes to avoid dirty state during build
- cd ${{ github.workspace }}/kernel/common
- git config --global user.name "github-actions[bot]"
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
- git add .
- git commit -m "Wild: Clean Dirty Flag"
|