-
Notifications
You must be signed in to change notification settings - Fork 48
71 lines (60 loc) · 1.76 KB
/
powerpc-perf.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
70
71
name: powerpc/perf
# 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:
# Only build if perf or other pieces it uses have been modified
- 'tools/perf/**'
- 'tools/arch/**'
- 'tools/build/**'
- 'tools/include/**'
- 'tools/lib/**'
- 'tools/scripts/**'
# Change to workflow triggers a build
- '.github/workflows/powerpc-perf.yml'
jobs:
perf:
runs-on: ubuntu-latest
strategy:
matrix:
image: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
subarch: [ppc64, ppc64le]
env:
ARCH: powerpc
TARGET: perf
CCACHE: 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