|
| 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 |
0 commit comments