aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/nx-libs-archs.yml
diff options
context:
space:
mode:
authorMario Trangoni <mjtrangoni@gmail.com>2021-02-06 18:43:49 +0100
committerMario Trangoni <mjtrangoni@gmail.com>2021-02-06 18:47:09 +0100
commit899c2a6f112610b8cdb2566f85fc533ff5e81885 (patch)
tree1bbb8e5f8d86fc403004c80819ea4c352ea6f900 /.github/workflows/nx-libs-archs.yml
parent3dfd7a711567f90878acb1a58ee5fe3228f102b9 (diff)
downloadnx-libs-899c2a6f112610b8cdb2566f85fc533ff5e81885.tar.gz
nx-libs-899c2a6f112610b8cdb2566f85fc533ff5e81885.tar.bz2
nx-libs-899c2a6f112610b8cdb2566f85fc533ff5e81885.zip
Build nx-libs on different architectures
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Diffstat (limited to '.github/workflows/nx-libs-archs.yml')
-rw-r--r--.github/workflows/nx-libs-archs.yml81
1 files changed, 81 insertions, 0 deletions
diff --git a/.github/workflows/nx-libs-archs.yml b/.github/workflows/nx-libs-archs.yml
new file mode 100644
index 000000000..b2e343acd
--- /dev/null
+++ b/.github/workflows/nx-libs-archs.yml
@@ -0,0 +1,81 @@
+name: nx-libs CI diff archs
+
+on:
+ push:
+ branches: [ 3.6.x ]
+ pull_request:
+ branches: [ 3.6.x ]
+
+jobs:
+ build:
+ runs-on: ubuntu-20.04
+ name: Build on ${{ matrix.distro }} ${{ matrix.arch }} with gcc
+
+ # Run steps on a matrix of 4 arch/distro combinations
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - arch: aarch64
+ distro: ubuntu20.04
+ - arch: ppc64le
+ distro: ubuntu20.04
+ - arch: s390x
+ distro: ubuntu20.04
+ - arch: armv7
+ distro: ubuntu20.04
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - uses: uraimo/run-on-arch-action@v2.0.8
+ name: Build artifact
+ id: build
+ with:
+ arch: ${{ matrix.arch }}
+ distro: ${{ matrix.distro }}
+
+ # Not required, but speeds up builds
+ githubToken: ${{ github.token }}
+
+ # Pass some environment variables to the container
+ env: |
+ CC: gcc
+ CXX: g++
+ DEBIAN_FRONTEND: noninteractive
+
+ # The shell to run commands with in the container
+ shell: /bin/sh
+
+ # Install some dependencies in the container. This speeds up builds if
+ # you are also using githubToken. Any dependencies installed here will
+ # be part of the container image that gets cached, so subsequent
+ # builds don't have to re-install them. The image layer is cached
+ # publicly in your project's package repository, so it is vital that
+ # no secrets are present in the container state or logs.
+ install: |
+ case "${{ matrix.distro }}" in
+ ubuntu*)
+ cat /etc/debian_version
+ apt-get update -q -y
+ apt-get install -q -y gcc g++
+ gcc --version
+ # basic packages
+ apt-get install -q -y \
+ autoconf libtool make pkg-config
+ # imake deps
+ apt-get install -q -y \
+ libxkbfile-dev xfonts-utils xutils-dev
+ # X11 libraries deps
+ apt-get install -q -y \
+ libpixman-1-dev libjpeg-dev libxcomposite-dev libxdamage-dev \
+ libxml2-dev libxfont-dev libxinerama-dev libxpm-dev libxrandr-dev \
+ libxtst-dev x11proto-fonts-dev
+ # soft requirements
+ apt-get install -q -y \
+ quilt x11-xkb-utils
+ ;;
+ esac
+
+ run: |
+ make