Automatic merge of 'topic/ppc-kvm-test' into merge-test (2024-11-15 0… #602
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |