Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/pr.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: pull-request

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-pull-request-intel:
runs-on: ubuntu-24.04
container: vathpela/efi-ci:${{ matrix.distro }}-x64
name: ${{ matrix.distro }} ${{ matrix.arch }} build

strategy:
fail-fast: false
matrix:
include:
- arch: amd64
makearch: x86_64
distro: centos9
- arch: amd64
makearch: x86_64
distro: centos10
- arch: amd64
makearch: x86_64
distro: f43
- arch: amd64
makearch: x86_64
distro: f44
- arch: amd64
makearch: x86_64
distro: f45

steps:
- name: Checkout
uses: actions/checkout@v5
with:
# otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: recursive
- name: Work around directory ownership issue
id: ignore-ownership
run: |
git config --global --add safe.directory /__w/shim/shim
- name: Install some build requirements
id: dnf
run: |
dnf install -y efivar-devel nss-devel openssl-devel
- name: Run tests on ${{ matrix.distro }} for ${{ matrix.arch }}
id: test
run: |
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir test
- name: Do the build on ${{ matrix.distro }} for ${{ matrix.arch }}
id: build
run: |
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir all
- name: Install on ${{ matrix.distro }} for ${{ matrix.arch }}
id: install
run: |
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir install
echo 'results:'
find /destdir -type f
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion src/pesum.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ main(int argc, char *argv[])
while ((infile = poptGetArg(optCon)) != NULL) {
pesign_context *ctxp = NULL;

char *ext = strrchr(infile, '.');
char const *ext = strrchr(infile, '.');
if (ext && strcmp(ext, ".ko") == 0)
fmt = FORMAT_KERNEL_MODULE;

Expand Down
Loading