Skip to content

Commit 740f4b3

Browse files
mpelinuxppc
authored andcommitted
CI: Add CI configuration to linux-next 20260403
1 parent 2febe6e commit 740f4b3

19 files changed

Lines changed: 1207 additions & 0 deletions
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"__comment_owner": "match compiler warning/error lines not from source",
5+
"owner": "compiler-non-source",
6+
"pattern": [
7+
{
8+
"__comment_regexp1": "clang: warning: argument unused during compilation: '-march=armv7-a' [-Wunused-command-line-argument]",
9+
"__comment_regexp2": "ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected",
10+
"regexp": "^(?:[^:]+): (?:fatal\\s+)?(warning|error):\\s+(.*)$",
11+
"severity": 1,
12+
"message": 2
13+
}
14+
]
15+
}
16+
]
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "gcc-problem-matcher",
5+
"pattern": [
6+
{
7+
"regexp": "^(?:/linux/)?(.*):(\\d+):(\\d+):\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"message": 5
13+
}
14+
]
15+
}
16+
]
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "powerpc-sparse",
5+
"pattern": [
6+
{
7+
"regexp": "^\\+(?:/linux/)?(.*):(\\d+|XX):(\\d+|XX):\\s+(error|warning):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"message": 5
13+
}
14+
]
15+
}
16+
]
17+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: powerpc/allconfig
2+
3+
# Controls when the action will run.
4+
on:
5+
# This allows the build to be triggered manually via the github UI.
6+
workflow_dispatch:
7+
8+
jobs:
9+
kernel:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
# ppc64le allmod and allyes
17+
- subarch: ppc64le
18+
defconfig: ppc64le_allmodconfig
19+
image: fedora-42
20+
- subarch: ppc64le
21+
defconfig: allyesconfig
22+
image: fedora-42
23+
merge_config: /linux/arch/powerpc/configs/le.config
24+
# ppc64 allmod and allyes
25+
- subarch: ppc64
26+
defconfig: allmodconfig
27+
image: fedora-42
28+
- subarch: ppc64
29+
defconfig: allyesconfig
30+
image: fedora-42
31+
# ppc32 allmod
32+
- subarch: ppc
33+
defconfig: ppc32_allmodconfig
34+
image: fedora-42
35+
# ppc64 book3e allmod
36+
# Broken due to head_check.sh
37+
#- subarch: ppc64
38+
# defconfig: ppc64_book3e_allmodconfig
39+
# image: fedora-42
40+
41+
env:
42+
ARCH: powerpc
43+
TARGET: kernel
44+
CCACHE: 1
45+
SUBARCH: ${{ matrix.subarch }}
46+
IMAGE: ${{ matrix.image }}
47+
DEFCONFIG: ${{ matrix.defconfig }}
48+
MERGE_CONFIG: /linux/arch/powerpc/configs/disable-werror.config,${{ matrix.merge_config }}
49+
50+
steps:
51+
- uses: actions/checkout@v4
52+
53+
- name: Register problem matchers
54+
run: |
55+
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
56+
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
57+
58+
- name: Load ccache
59+
uses: actions/cache@v4
60+
with:
61+
path: ~/.ccache
62+
key: ${{ matrix.image }}-${{ matrix.subarch }}-${{ matrix.defconfig }}
63+
64+
- name: Login to GitHub Container Registry
65+
uses: docker/login-action@v3
66+
with:
67+
registry: ghcr.io
68+
username: ${{ github.actor }}
69+
password: ${{ secrets.GITHUB_TOKEN }}
70+
71+
- name: Build
72+
run: |
73+
mkdir -p ~/.ccache
74+
./arch/powerpc/tools/ci-build.sh
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: powerpc/clang
2+
3+
# Controls when the action will run.
4+
on:
5+
# run at 2:30am AEST == 4:30pm UTC
6+
schedule:
7+
- cron: '30 16 * * *'
8+
# This allows the build to be triggered manually via the github UI.
9+
workflow_dispatch:
10+
11+
jobs:
12+
kernel:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
defconfig: [ppc64, corenet64_smp, pmac32, mpc885_ads]
19+
image: [fedora-42]
20+
subarch: [ppc64]
21+
include:
22+
- subarch: ppc64le
23+
defconfig: ppc64le
24+
image: fedora-42
25+
26+
env:
27+
CLANG: 1
28+
LLVM_IAS: 0
29+
ARCH: powerpc
30+
TARGET: kernel
31+
CCACHE: 1
32+
SUBARCH: ${{ matrix.subarch }}
33+
IMAGE: ${{ matrix.image }}
34+
DEFCONFIG: ${{ matrix.defconfig }}
35+
MERGE_CONFIG: /linux/arch/powerpc/configs/disable-werror.config
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Register problem matchers
41+
run: |
42+
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
43+
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
44+
45+
- name: Load ccache
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.ccache
49+
key: ${{ matrix.image }}-${{ matrix.subarch }}-${{ matrix.defconfig }}
50+
51+
- name: Login to GitHub Container Registry
52+
uses: docker/login-action@v3
53+
with:
54+
registry: ghcr.io
55+
username: ${{ github.actor }}
56+
password: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Build
59+
run: |
60+
mkdir -p ~/.ccache
61+
./arch/powerpc/tools/ci-build.sh
62+
63+
- name: Archive artifacts
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: ${{ matrix.defconfig }}-${{ matrix.image }}
67+
path: |
68+
~/output/vmlinux
69+
~/output/.config
70+
~/output/System.map
71+
~/output/modules.tar.bz2
72+
~/output/arch/powerpc/boot/zImage
73+
~/output/arch/powerpc/boot/uImage
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: powerpc/extrawarn
2+
3+
# Controls when the action will run.
4+
on:
5+
# Only when triggered manually via the github UI.
6+
workflow_dispatch:
7+
8+
jobs:
9+
kernel:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
defconfig: [ppc64, corenet64_smp, pmac32, ppc44x, mpc885_ads, corenet32_smp]
15+
image: [fedora-42, korg-8.1.0]
16+
subarch: [ppc64]
17+
include:
18+
- subarch: ppc64le
19+
defconfig: ppc64le
20+
image: korg-8.1.0
21+
- subarch: ppc64le
22+
defconfig: ppc64le
23+
image: fedora-42
24+
25+
env:
26+
ARCH: powerpc
27+
TARGET: kernel
28+
CCACHE: 1
29+
SUBARCH: ${{ matrix.subarch }}
30+
IMAGE: ${{ matrix.image }}
31+
DEFCONFIG: ${{ matrix.defconfig }}
32+
MERGE_CONFIG: /linux/arch/powerpc/configs/disable-werror.config
33+
KBUILD_EXTRA_WARN: 1
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Register problem matchers
39+
run: |
40+
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
41+
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
42+
43+
- name: Load ccache
44+
uses: actions/cache@v4
45+
with:
46+
path: ~/.ccache
47+
key: ${{ matrix.image }}-${{ matrix.subarch }}-${{ matrix.defconfig }}
48+
49+
- name: Login to GitHub Container Registry
50+
uses: docker/login-action@v3
51+
with:
52+
registry: ghcr.io
53+
username: ${{ github.actor }}
54+
password: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Build
57+
run: |
58+
mkdir -p ~/.ccache
59+
./arch/powerpc/tools/ci-build.sh
60+
61+
- name: Archive artifacts
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: ${{ matrix.defconfig }}-${{ matrix.image }}
65+
path: |
66+
~/output/vmlinux
67+
~/output/.config
68+
~/output/System.map
69+
~/output/modules.tar.bz2
70+
~/output/arch/powerpc/boot/zImage
71+
~/output/arch/powerpc/boot/uImage

0 commit comments

Comments
 (0)