Skip to content

Commit a2dceb1

Browse files
mpelinuxppc
authored and
linuxppc
committed
CI: Add CI configuration to linux-next 20250311
1 parent eea2558 commit a2dceb1

17 files changed

+885
-0
lines changed
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+
}
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+
}

.github/problem-matchers/sparse.json

+17
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+
}
+74
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-40
20+
- subarch: ppc64le
21+
defconfig: allyesconfig
22+
image: fedora-40
23+
merge_config: /linux/arch/powerpc/configs/le.config
24+
# ppc64 allmod and allyes
25+
- subarch: ppc64
26+
defconfig: allmodconfig
27+
image: fedora-40
28+
- subarch: ppc64
29+
defconfig: allyesconfig
30+
image: fedora-40
31+
# ppc32 allmod
32+
- subarch: ppc
33+
defconfig: ppc32_allmodconfig
34+
image: fedora-40
35+
# ppc64 book3e allmod
36+
# Broken due to head_check.sh
37+
#- subarch: ppc64
38+
# defconfig: ppc64_book3e_allmodconfig
39+
# image: fedora-40
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

.github/workflows/powerpc-clang.yml

+73
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-40]
20+
subarch: [ppc64]
21+
include:
22+
- subarch: ppc64le
23+
defconfig: ppc64le
24+
image: fedora-40
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
+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
fail-fast: false
14+
matrix:
15+
defconfig: [ppc64, corenet64_smp, pmac32, ppc44x, mpc885_ads, corenet32_smp]
16+
image: [fedora-40, korg-8.1.0]
17+
subarch: [ppc64]
18+
include:
19+
- subarch: ppc64le
20+
defconfig: ppc64le
21+
image: korg-8.1.0
22+
- subarch: ppc64le
23+
defconfig: ppc64le
24+
image: fedora-40
25+
26+
env:
27+
ARCH: powerpc
28+
TARGET: kernel
29+
CCACHE: 1
30+
SUBARCH: ${{ matrix.subarch }}
31+
IMAGE: ${{ matrix.image }}
32+
DEFCONFIG: ${{ matrix.defconfig }}
33+
MERGE_CONFIG: /linux/arch/powerpc/configs/disable-werror.config
34+
KBUILD_EXTRA_WARN: 1
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Register problem matchers
40+
run: |
41+
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
42+
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
43+
44+
- name: Load ccache
45+
uses: actions/cache@v4
46+
with:
47+
path: ~/.ccache
48+
key: ${{ matrix.image }}-${{ matrix.subarch }}-${{ matrix.defconfig }}
49+
50+
- name: Login to GitHub Container Registry
51+
uses: docker/login-action@v3
52+
with:
53+
registry: ghcr.io
54+
username: ${{ github.actor }}
55+
password: ${{ secrets.GITHUB_TOKEN }}
56+
57+
- name: Build
58+
run: |
59+
mkdir -p ~/.ccache
60+
./arch/powerpc/tools/ci-build.sh
61+
62+
- name: Archive artifacts
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: ${{ matrix.defconfig }}-${{ matrix.image }}
66+
path: |
67+
~/output/vmlinux
68+
~/output/.config
69+
~/output/System.map
70+
~/output/modules.tar.bz2
71+
~/output/arch/powerpc/boot/zImage
72+
~/output/arch/powerpc/boot/uImage

0 commit comments

Comments
 (0)