-
Notifications
You must be signed in to change notification settings - Fork 109
38 lines (30 loc) · 1005 Bytes
/
check-config.yml
File metadata and controls
38 lines (30 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Check defconfig Consistency
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-defconfig:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y bc build-essential zstd flex bison libssl-dev make libelf-dev git debhelper pahole libncurses-dev
- name: Backup original defconfig
run: |
cp arch/x86/configs/deepin_x86_desktop_defconfig defconfig.orig
- name: Generate new defconfig
run: |
make ARCH=x86 deepin_x86_desktop_defconfig
make ARCH=x86 savedefconfig
- name: Compare defconfig files
run: |
if ! diff -u defconfig defconfig.orig; then
echo "::error:: deepin_x86_desktop_defconfig 文件不一致,请执行 'make savedefconfig' 并提交更新"
exit 1
fi