forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (89 loc) · 2.99 KB
/
kernel.yml
File metadata and controls
93 lines (89 loc) · 2.99 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
- 'ci/**'
- 'docs/**'
pull_request:
paths-ignore:
- '.github/**'
- 'ci/**'
- 'docs/**'
jobs:
checks:
uses: ./.github/workflows/checks.yml
secrets: inherit
with:
ref_branch: "mirror/next/linux-next/master"
build_gcc_x86_64:
uses: ./.github/workflows/build.yml
needs: [checks]
secrets: inherit
with:
CXX: "14"
ARCH: "x86"
DEFCONFIG: "adi_ci_defconfig"
build_llvm_x86_64:
uses: ./.github/workflows/build.yml
needs: [checks]
secrets: inherit
with:
LLVM: "19"
ARCH: "x86"
DEFCONFIG: "adi_ci_defconfig"
CHECKS: true
build_gcc_aarch64:
uses: ./.github/workflows/build.yml
needs: [checks]
secrets: inherit
with:
CXX: "14"
CROSS_COMPILE: "aarch64-suse-linux-"
ARCH: "arm64"
DEFCONFIG: "adi_ci_defconfig"
build_gcc_arm:
uses: ./.github/workflows/build.yml
#needs: [checks]
secrets: inherit
with:
CXX: "14"
CROSS_COMPILE: "arm-suse-linux-gnueabi-"
ARCH: "arm"
DEFCONFIG: "adi_ci_defconfig"
CHECKS: true
assert:
runs-on: [self-hosted, v1]
needs: [checks, build_gcc_x86_64, build_llvm_x86_64, build_gcc_aarch64, build_gcc_arm]
steps:
- name: Assert checks
env:
job_warn_checks: ${{needs.checks.outputs.warn}}
job_warn_build_gcc_x86_64: ${{needs.build_gcc_x86_64.outputs.warn}}
job_warn_build_llvm_x86_64: ${{needs.build_llvm_x86_64.outputs.warn}}
job_warn_build_gcc_aarch64: ${{needs.build_gcc_aarch64.outputs.warn}}
job_warn_build_gcc_arm: ${{needs.build_gcc_arm.outputs.warn}}
job_fail_checks: ${{needs.checks.outputs.fail}}
job_fail_build_gcc_x86_64: ${{needs.build_gcc_x86_64.outputs.fail}}
job_fail_build_llvm_x86_64: ${{needs.build_llvm_x86_64.outputs.fail}}
job_fail_build_gcc_aarch64: ${{needs.build_gcc_aarch64.outputs.fail}}
job_fail_build_gcc_arm: ${{needs.build_gcc_arm.outputs.fail}}
run: |
warn=$(printenv | grep ^job_warn_ | grep -v =$ | tr '\n' ';' | \
sed -E -e 's/;/%0A/g' -e 's/\=true(,)?/%0A /g' -e 's/=/:%0A /g' -e 's/(job|step)_(fail|warn)_//g')
fail=$(printenv | grep ^job_fail_ | grep -v =$ | tr '\n' ';' | \
sed -E -e 's/;/%0A/g' -e 's/\=true(,)?/%0A /g' -e 's/=/:%0A /g' -e 's/(job|step)_(fail|warn)_//g')
if [[ ! -z "$fail" ]]; then
if [[ ! -z "$warn" ]]; then
echo "::error::Some jobs didn't pass strict checks:%0A$fail%0AAnd non-strict checks:%0A$warn"
else
echo "::error::Some jobs didn't pass strict checks:%0A$fail"
fi
exit 1
else
if [[ ! -z "$warn" ]]; then
warn=%0A$(echo $warn | tr '\n' ';' | sed 's/;/%0A/g')
echo "::warning::Some jobs didn't pass non-strict checks:%0A$warn"
fi
fi