forked from linuxppc/linux-ci
-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (58 loc) · 1.79 KB
/
powerpc-ppctests.yml
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
name: powerpc/ppctests
# Controls when the action will run.
on:
# This allows the build to be triggered manually via the github UI.
workflow_dispatch:
push:
# This triggers the build on a push to any branch
branches:
- '**'
# As long as one of these paths matches
paths:
# Generic selftests changes might affect us so match all of selftests
- 'tools/testing/selftests/**'
# Some files in arch are symlinked by selftests
- 'arch/powerpc/**'
# Change to workflow triggers a build
- '.github/workflows/powerpc-ppctests.yml'
jobs:
ppctests:
runs-on: ubuntu-latest
strategy:
matrix:
image: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, ubuntu-16.04]
subarch: [ppc64, ppc64le]
env:
ARCH: powerpc
TARGET: ppctests
CCACHE: 1
INSTALL: 1
SUBARCH: ${{ matrix.subarch }}
IMAGE: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4
- name: Register problem matchers
run: |
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
echo "::add-matcher::.github/problem-matchers/compiler-non-source.json"
- name: Load ccache
uses: actions/cache@v4
with:
path: ~/.ccache
key: ${{ matrix.image }}-${{ matrix.subarch }}-${{ matrix.defconfig }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
mkdir -p ~/.ccache
./arch/powerpc/tools/ci-build.sh
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.subarch }}-${{ matrix.image }}
path: |
~/output/install