Skip to content

dev: workflows: s/kdevops/mm-ci #6

dev: workflows: s/kdevops/mm-ci

dev: workflows: s/kdevops/mm-ci #6

Workflow file for this run

# SPDX-License-Identifier: GPL-2.0
#
# Most simple Linux kernel subsystems can be tested with this target
# test setup. For more elaborates tests look for a topic branch under the
# mm-ci-ci tree. For example to test a filesystem look at the fstests
# branch.
name: Run generic mm-ci CI tests
on:
push:
branches: ['**']
pull_request:
branches: ['**']
workflow_dispatch: # Allow manual triggering
jobs:
setup:
uses: ./.github/workflows/mm-ci-init.yml
secrets: inherit
base-config:
needs: setup
name: Create base kernel configuration
runs-on: [self-hosted, Linux, X64]
steps:
- name: Create base kernel configuration
run: |
cd devops/linux
echo "CONFIG_DEBUG_VM=y" > mm-ci.config
echo "CONFIG_TRANSPARENT_HUGEPAGE=y" >> mm-ci.config
echo "CONFIG_USERFAULTFD=y" >> mm-ci.config
echo "CONFIG_HUGETLBFS=y" >> mm-ci.config
build:
needs: base-config
name: Build kernel
runs-on: [self-hosted, Linux, X64]
steps:
- name: Build kernel
run: |
cd devops/linux
vng --build --config mm-ci.config --verbose
cd tools/testing/selftests/mm
make -k -j$(nproc)
run-tests:
needs: build
name: Run selftests
runs-on: [self-hosted, Linux, X64]
steps:
- name: Run selftests
run: |
cd devops/linux
vng --exec "cd tools/testing/selftests/mm; sudo ./run_vmtests.sh"
echo "ok" > ci.result