fpga: dfl: fme: fix regression querying platform device in power_hwmo… #160
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: Build dkms packages | |
on: | |
push: | |
branches: | |
- 'intel/**' | |
tags: | |
- 'intel-*' | |
paths: | |
- '.github/workflows/dkms.yml' | |
- 'Makefile' | |
- 'build/**' | |
- 'drivers/**' | |
- 'include/**' | |
pull_request: | |
branches: | |
- 'intel/**' | |
paths: | |
- '.github/workflows/dkms.yml' | |
- 'Makefile' | |
- 'build/**' | |
- 'drivers/**' | |
- 'include/**' | |
workflow_dispatch: | |
jobs: | |
dkms: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- vendor: rockylinux | |
release: '8' | |
pkg: rpm | |
- vendor: ubuntu | |
release: '22.04' | |
pkg: deb | |
container: | |
image: ghcr.io/ofs/linux-dfl-backport/${{ matrix.vendor }}-kernel-devel:${{ matrix.release }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# Makefile derives the package version from git describe, which will | |
# fall back to the commit hash if no tagged commits are available. | |
# Since Debian package versions must start with a number, this will | |
# fail the build when the hash does not start with a decimal digit. | |
fetch-depth: 0 | |
fetch-tags: true | |
# The owner of the workspace directory may not match the owner of the | |
# git process in the container, which triggers git's ownership detection. | |
- name: Work around git's ownership detection | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
# The kernel source is not needed to build dkms packages, but the | |
# Makefile always includes the kernel configuration and will fail | |
# when the kernel source is not available. Override KERNEL since the | |
# running kernel is installed on the host machine, not the container. | |
- name: Build dkms package | |
run: make ${{ matrix.pkg }} KERNEL="$(basename /lib/modules/*)" | |
- name: Upload dkms package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-dfl-backport-dkms-${{ matrix.vendor }}-${{ matrix.release }}-${{ github.run_id }} | |
path: '*.${{ matrix.pkg }}' | |
if-no-files-found: error |