All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: kexec@lists.infradead.org
Cc: Simon Horman <horms@verge.net.au>
Subject: [PATCH kexec-tools 7/7] github: initial workflow
Date: Fri,  2 Apr 2021 12:17:37 +0200	[thread overview]
Message-ID: <20210402101737.1886-8-horms@verge.net.au> (raw)
In-Reply-To: <20210402101737.1886-1-horms@verge.net.au>

Initial github workflow which builds kexec on a range of architectures.

Signed-off-by: Simon Horman <horms@verge.net.au>
---
 .github/workflows/build.yml | 72 +++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 .github/workflows/build.yml

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..df35703
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,72 @@
+name: Build
+
+on: push
+
+jobs:
+  build:
+    name: Build
+    runs-on: ubuntu-20.04
+    strategy:
+      matrix:
+        arch:
+        - arm
+        - arm64
+        - hppa
+        - i686
+        - m68k
+        - mips
+        - mipsel
+        - powerpc
+        - powerpc64
+        - powerpc64le
+        - sh4
+        - s390x
+        - x86_64-x32
+        include:
+          - arch: x86_64
+          - arch: x86_64
+            libxen: libxen
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v2
+
+    - name: Set Environment
+      env:
+        LIBXEN: ${{ matrix.libxen }}
+        ARCH: ${{ matrix.arch }}
+      run: |
+        case $LIBXEN in
+          libxen) EXTRA_PKGS+=" libxen-dev" ;;
+        esac
+
+        case $ARCH in
+          arm)         GNU_ARCH="arm-linux-gnueabi" ;;
+          arm64)       GNU_ARCH="aarch64-linux-gnu" ;;
+          x86_64)      ;;
+          x86_64-x32)  GNU_ARCH="x86_64-linux-gnux32"
+                       CROSS_COMPILER_PKG="gcc-x86-64-linux-gnux32" ;;
+          *)           GNU_ARCH="$ARCH-linux-gnu" ;;
+        esac
+
+        if [ -n "$GNU_ARCH" ]; then
+          if [ -z "$CROSS_COMPILER_PKG" ]; then
+            CROSS_COMPILER_PKG="gcc-$GNU_ARCH"
+          fi
+          EXTRA_PKGS+=" $CROSS_COMPILER_PKG"
+          CONFIG_FLAGS+=" --host=$GNU_ARCH"
+        fi
+
+        echo "EXTRA_PKGS=$EXTRA_PKGS" >> $GITHUB_ENV
+        echo "CONFIG_FLAGS=$CONFIG_FLAGS" >> $GITHUB_ENV
+
+    - name: Install Dependencies
+      if: env.EXTRA_PKGS != ''
+      run: sudo apt-get -q=2 install ${{ env.EXTRA_PKGS }}
+
+    - name: Build
+      run: |
+        ./bootstrap
+        ./configure ${{ env.CONFIG_FLAGS }}
+        make -j"$(nproc)" distcheck \
+          DISTCHECK_CONFIGURE_FLAGS="${{ env.CONFIG_FLAGS }}"
+
-- 
2.20.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  parent reply	other threads:[~2021-04-02 10:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-02 10:17 [PATCH kexec-tools 0/7] build enhancements and GitHub workflow Simon Horman
2021-04-02 10:17 ` [PATCH kexec-tools 1/7] build: create tarball without self-referential hard links Simon Horman
2021-04-02 10:17 ` [PATCH kexec-tools 2/7] build: add dist make target Simon Horman
2021-04-02 10:17 ` [PATCH kexec-tools 3/7] build: uninstall kexec_test Simon Horman
2021-04-02 10:17 ` [PATCH kexec-tools 4/7] build: use DESTDIR in uninstall target Simon Horman
2021-04-02 10:17 ` [PATCH kexec-tools 5/7] build: simplify " Simon Horman
2021-04-02 10:17 ` [PATCH kexec-tools 6/7] build: add distcheck target Simon Horman
2021-04-02 10:17 ` Simon Horman [this message]
2021-04-07 19:26 ` [PATCH kexec-tools 0/7] build enhancements and GitHub workflow Simon Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210402101737.1886-8-horms@verge.net.au \
    --to=horms@verge.net.au \
    --cc=kexec@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.