Skip to content

Commit 4f02515

Browse files
committed
powerpc/ci: Add CI configuration
Signed-off-by: Michael Ellerman <[email protected]>
1 parent b15dc41 commit 4f02515

16 files changed

+744
-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+
}
+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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+
push:
9+
# This triggers the build on a push to merge-test only
10+
branches:
11+
- 'merge-test'
12+
13+
jobs:
14+
kernel:
15+
runs-on: ubuntu-latest
16+
17+
continue-on-error: true
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
# ppc64le allmod and allyes
24+
- subarch: ppc64le
25+
defconfig: ppc64le_allmodconfig
26+
image: ubuntu-21.10
27+
- subarch: ppc64le
28+
defconfig: allmodconfig
29+
image: ubuntu-21.10
30+
merge_config: /linux/arch/powerpc/configs/le.config
31+
# ppc64 allmod and allyes
32+
- subarch: ppc64
33+
defconfig: allmodconfig
34+
image: ubuntu-21.10
35+
- subarch: ppc64
36+
defconfig: allyesconfig
37+
image: ubuntu-21.10
38+
# ppc32 allmod
39+
- subarch: ppc
40+
defconfig: ppc32_allmodconfig
41+
image: ubuntu-21.10
42+
# ppc64 book3e allmod
43+
- subarch: ppc64
44+
defconfig: ppc64_book3e_allmodconfig
45+
image: ubuntu-21.10
46+
47+
env:
48+
ARCH: powerpc
49+
TARGET: kernel
50+
SUBARCH: ${{ matrix.subarch }}
51+
IMAGE: ${{ matrix.image }}
52+
DEFCONFIG: ${{ matrix.defconfig }}
53+
MERGE_CONFIG: /linux/arch/powerpc/configs/disable-werror.config,${{ matrix.merge_config }}
54+
55+
steps:
56+
- uses: actions/checkout@v2
57+
58+
- name: Register problem matchers
59+
run: |
60+
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
61+
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
62+
63+
- name: build
64+
run: ./arch/powerpc/tools/ci-build.sh
65+
66+
- name: Archive artifacts
67+
uses: actions/upload-artifact@v2
68+
with:
69+
name: ${{ matrix.defconfig }}-${{ matrix.image }}
70+
path: |
71+
~/output/vmlinux
72+
~/output/.config
73+
~/output/System.map
74+
~/output/modules.tar.bz2
75+
~/output/arch/powerpc/boot/zImage
76+
~/output/arch/powerpc/boot/uImage

.github/workflows/powerpc-clang.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: powerpc/clang
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+
push:
9+
# This triggers the build on a push to any branch
10+
branches:
11+
- '**'
12+
# As long as one of these paths matches
13+
paths:
14+
- '!tools/**' # ignore tools
15+
- '!samples/**' # ignore samples
16+
- '!Documentation/**' # ignore Documentation
17+
- '!arch/**' # ignore arch changes
18+
- 'arch/powerpc/**' # but not arch/powerpc
19+
- 'arch/Kconfig' # or common bits in arch
20+
- '**' # anything else triggers a build
21+
22+
jobs:
23+
kernel:
24+
runs-on: ubuntu-latest
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
defconfig: [ppc64, corenet64_smp, pmac32, ppc40x, ppc44x, mpc885_ads]
30+
image: [ubuntu-21.10]
31+
subarch: [ppc64]
32+
include:
33+
- subarch: ppc64le
34+
defconfig: ppc64le
35+
image: ubuntu-21.10
36+
37+
env:
38+
CLANG: 1
39+
LLVM_IAS: 0
40+
ARCH: powerpc
41+
TARGET: kernel
42+
SUBARCH: ${{ matrix.subarch }}
43+
IMAGE: ${{ matrix.image }}
44+
DEFCONFIG: ${{ matrix.defconfig }}
45+
MERGE_CONFIG: /linux/arch/powerpc/configs/disable-werror.config
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
50+
- name: Register problem matchers
51+
run: |
52+
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
53+
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
54+
55+
- name: build
56+
run: ./arch/powerpc/tools/ci-build.sh
57+
58+
- name: Archive artifacts
59+
uses: actions/upload-artifact@v2
60+
with:
61+
name: ${{ matrix.defconfig }}-${{ matrix.image }}
62+
path: |
63+
~/output/vmlinux
64+
~/output/.config
65+
~/output/System.map
66+
~/output/modules.tar.bz2
67+
~/output/arch/powerpc/boot/zImage
68+
~/output/arch/powerpc/boot/uImage
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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, ppc40x, ppc44x, mpc885_ads, corenet32_smp]
15+
image: [fedora-33, korg-4.9.4]
16+
subarch: [ppc64]
17+
include:
18+
- subarch: ppc64le
19+
defconfig: ppc64le
20+
image: korg-5.5.0
21+
- subarch: ppc64le
22+
defconfig: ppc64le
23+
image: fedora-33
24+
25+
env:
26+
ARCH: powerpc
27+
TARGET: kernel
28+
SUBARCH: ${{ matrix.subarch }}
29+
IMAGE: ${{ matrix.image }}
30+
DEFCONFIG: ${{ matrix.defconfig }}
31+
MERGE_CONFIG: /linux/arch/powerpc/configs/disable-werror.config
32+
KBUILD_EXTRA_WARN: 1
33+
34+
steps:
35+
- uses: actions/checkout@v2
36+
37+
- name: Register problem matchers
38+
run: |
39+
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
40+
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
41+
42+
- name: build
43+
run: ./arch/powerpc/tools/ci-build.sh
44+
45+
- name: Archive artifacts
46+
uses: actions/upload-artifact@v2
47+
with:
48+
name: ${{ matrix.defconfig }}-${{ matrix.image }}
49+
path: |
50+
~/output/vmlinux
51+
~/output/.config
52+
~/output/System.map
53+
~/output/modules.tar.bz2
54+
~/output/arch/powerpc/boot/zImage
55+
~/output/arch/powerpc/boot/uImage

0 commit comments

Comments
 (0)