Skip to content

Automatic merge of 'topic/ppc-kvm' into merge-test (2023-10-16 11:50) #903

Automatic merge of 'topic/ppc-kvm' into merge-test (2023-10-16 11:50)

Automatic merge of 'topic/ppc-kvm' into merge-test (2023-10-16 11:50) #903

name: powerpc/selftests
# 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-selftests.yml'
jobs:
selftests:
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: selftests
CCACHE: 1
INSTALL: 1
SUBARCH: ${{ matrix.subarch }}
IMAGE: ${{ matrix.image }}
steps:
- uses: actions/checkout@v3
- 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@v3
with:
path: ~/.ccache
key: ${{ matrix.image }}-${{ matrix.subarch }}-${{ matrix.defconfig }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
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@v3
with:
name: ${{ matrix.subarch }}-${{ matrix.image }}
path: |
~/output/install