-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pre-canned Fedora 40 and Debian unstable CI targets
Signed-off-by: Richard Hughes <[email protected]>
- Loading branch information
Showing
5 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
{ | ||
"name": "pull-request", | ||
"on": { | ||
"push": { "branches": "main" }, | ||
"pull_request": { "branches": "main" }, | ||
}, | ||
"jobs": { | ||
"linux": { | ||
"runs-on": "ubuntu-latest", | ||
"container": "vathpela/efi-ci:f36-x64", | ||
"steps": [ | ||
{ "uses": "actions/checkout@v2" }, | ||
{ "run": "meson build && ninja -C build" }, | ||
], | ||
}, | ||
}, | ||
} | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
distro: | ||
- fedora | ||
- debian | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: docker build -t efibootmgr-${{ matrix.distro }} -f ci/Dockerfile-${{ matrix.distro }} . | ||
- run: docker run -t -v `pwd`:/build efibootmgr-${{ matrix.distro }} ./ci/build-${{ matrix.distro }}.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM debian:unstable | ||
RUN apt-get update -qq | ||
RUN apt-get install -yq --no-install-recommends meson ninja-build pkg-config efivar-dev | ||
WORKDIR /build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM fedora:40 | ||
RUN dnf -y install meson redhat-rpm-config efivar-devel | ||
WORKDIR /build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build-fedora.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -e | ||
export LC_ALL=C.UTF-8 | ||
mkdir -p build && cd build | ||
rm -rf * | ||
meson .. | ||
ninja -v || bash | ||
ninja test -v | ||
DESTDIR=/tmp/install-ninja ninja install | ||
cd .. |