aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2021-11-05 18:26:16 +0100
committerCédric Le Goater <clg@kaod.org>2021-11-05 18:51:12 +0100
commitc437b2150c8eeeee01c774ba1115457d7ef2ef89 (patch)
tree92810424bc10dff0265fa49ed23dd074a40f1425
parentb2cd4a373b581c4af1af5693bad11b6ecb90e689 (diff)
downloadskiboot-c437b2150c8eeeee01c774ba1115457d7ef2ef89.zip
skiboot-c437b2150c8eeeee01c774ba1115457d7ef2ef89.tar.gz
skiboot-c437b2150c8eeeee01c774ba1115457d7ef2ef89.tar.bz2
CI: Add Fedora 35 to github actions
The only change with Fedora 34 is that since the qemu-system-ppc package is recent, we can now run the qemu boot test. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
-rw-r--r--.github/workflows/docker-builds-checks.yml3
-rw-r--r--opal-ci/Dockerfile-fedora359
-rwxr-xr-xopal-ci/build-fedora35.sh22
3 files changed, 33 insertions, 1 deletions
diff --git a/.github/workflows/docker-builds-checks.yml b/.github/workflows/docker-builds-checks.yml
index c2f8586..c020154 100644
--- a/.github/workflows/docker-builds-checks.yml
+++ b/.github/workflows/docker-builds-checks.yml
@@ -7,7 +7,8 @@ jobs:
strategy:
matrix:
- os: [ubuntu-18.04, ubuntu-20.04, ubuntu-latest, centos7, centos8, fedora33, fedora34, docs ]
+ os: [ ubuntu-18.04, ubuntu-20.04, ubuntu-rolling, centos7, centos8, fedora33, fedora34, fedora35, docs ]
+
steps:
- uses: actions/checkout@v2
- name: Create Docker image
diff --git a/opal-ci/Dockerfile-fedora35 b/opal-ci/Dockerfile-fedora35
new file mode 100644
index 0000000..5373bac
--- /dev/null
+++ b/opal-ci/Dockerfile-fedora35
@@ -0,0 +1,9 @@
+FROM fedora:35
+RUN dnf -y update
+RUN dnf -y install --allowerasing wget curl xterm gcc git xz make diffutils findutils expect valgrind valgrind-devel ccache dtc openssl openssl-devel gcc-powerpc64-linux-gnu mbedtls-devel which qemu-system-ppc
+# for building documentation and the coverage report
+RUN dnf -y install python-pip lcov
+RUN if [ `arch` = "x86_64" ]; then dnf -y install http://public.dhe.ibm.com/software/server/powerfuncsim/p9/packages/v1.1-0/systemsim-p9-1.1-0.f22.x86_64.rpm; fi
+COPY . /build/
+WORKDIR /build
+RUN curl -L -O https://github.com/open-power/op-build/releases/download/v2.7/zImage.epapr
diff --git a/opal-ci/build-fedora35.sh b/opal-ci/build-fedora35.sh
new file mode 100755
index 0000000..7c607a1
--- /dev/null
+++ b/opal-ci/build-fedora35.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+set -uo pipefail
+set -e
+set -vx
+
+MAKE_J=$(nproc)
+export CROSS="ccache powerpc64-linux-gnu-"
+
+make -j${MAKE_J} all
+make -j${MAKE_J} check
+(make clean; cd external/gard && CROSS= make -j${MAKE_J})
+(cd external/pflash; make -j${MAKE_J})
+make clean
+SKIBOOT_GCOV=1 make -j${MAKE_J}
+SKIBOOT_GCOV=1 make -j${MAKE_J} check
+
+make clean
+rm -rf builddir
+mkdir builddir
+make SRC=$(pwd) -f ../Makefile -C builddir -j${MAKE_J}
+make clean